RCFilters: Actually apply the $autoCloseIgnore to the overlay
authorMoriel Schottlender <moriel@gmail.com>
Wed, 28 Feb 2018 01:12:01 +0000 (17:12 -0800)
committerMoriel Schottlender <moriel@gmail.com>
Wed, 28 Feb 2018 01:13:46 +0000 (17:13 -0800)
The way we extended the configuration meant we overrided the
overlay $autoCloseIgnore with default rather than override the
default with the overlay.

Bug: T188459
Change-Id: If20bd400a8a206aa77c25c390d9e9ce5111b68cb

resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.MenuSelectWidget.js

index cbb4350..d968f0c 100644 (file)
                this.footers = [];
 
                // Parent
-               mw.rcfilters.ui.MenuSelectWidget.parent.call( this, $.extend( {
+               mw.rcfilters.ui.MenuSelectWidget.parent.call( this, $.extend( config, {
                        $autoCloseIgnore: this.$overlay,
                        width: 650,
                        // Our filtering is done through the model
                        filterFromInput: false
-               }, config ) );
+               } ) );
                this.setGroupElement(
                        $( '<div>' )
                                .addClass( 'mw-rcfilters-ui-menuSelectWidget-group' )