X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fwidget%2FNamespaceInputWidget.php;h=c638891ca0722ef0fcfe1396e30ef29b8512cec9;hp=3e86738bb3963eb81b8877bfe143ba532d61d5c4;hb=827c6bfa416d9d0de8cc8e22f9f3fa36d8129d44;hpb=3071f1fad720f1773864621158a0c59b73124896 diff --git a/includes/widget/NamespaceInputWidget.php b/includes/widget/NamespaceInputWidget.php index 3e86738bb3..c638891ca0 100644 --- a/includes/widget/NamespaceInputWidget.php +++ b/includes/widget/NamespaceInputWidget.php @@ -18,13 +18,12 @@ class NamespaceInputWidget extends \OOUI\DropdownInputWidget { * @param array $config Configuration options * @param string $config['includeAllValue'] If specified, add a "all namespaces" option to the * namespace dropdown, and use this as the input value for it - * @param number[] $config['exclude'] List of namespace numbers to exclude from the selector + * @param int[] $config['exclude'] List of namespace numbers to exclude from the selector */ public function __construct( array $config = [] ) { // Configuration initialization $config['options'] = $this->getNamespaceDropdownOptions( $config ); - // Parent constructor parent::__construct( $config ); // Properties @@ -61,6 +60,7 @@ class NamespaceInputWidget extends \OOUI\DropdownInputWidget { $config['includeAllValue'] = $this->includeAllValue; $config['exclude'] = $this->exclude; // Skip DropdownInputWidget's getConfig(), we don't need 'options' config + $config['dropdown']['$overlay'] = true; return \OOUI\InputWidget::getConfig( $config ); } }