Merge "HTMLTextAreaField: Add 'useeditfont' param"
[lhc/web/wiklou.git] / includes / widget / TitleInputWidget.php
index da2e94b..15f48e5 100644 (file)
@@ -30,7 +30,6 @@ class TitleInputWidget extends \OOUI\TextInputWidget {
         *  be a valid title (default: true)
         */
        public function __construct( array $config = [] ) {
-               // Parent constructor
                parent::__construct(
                        array_merge( [ 'maxLength' => 255 ], $config )
                );
@@ -76,6 +75,7 @@ class TitleInputWidget extends \OOUI\TextInputWidget {
                if ( $this->validateTitle !== null ) {
                        $config['validateTitle'] = $this->validateTitle;
                }
+               $config['$overlay'] = true;
                return parent::getConfig( $config );
        }
 }