For consistency with how normal OOjs UI widgets behave.
Only one usage outside of HTMLForm needed updating. There
are no usages in extensions in Gerrit.
Change-Id: I9b5de86307a13ca7355b7541e8683e4d6a10431f
'autofocus' => trim( $term ) === '',
'value' => $term,
'dataLocation' => 'content',
+ 'infusable' => true,
] );
$layout = new OOUI\ActionFieldLayout( $searchWidget, new OOUI\ButtonInputWidget( [
$this->title = new TitleInputWidget( array_merge(
$config['title'],
[
- // The inner TitleInputWidget shouldn't be infusable,
- // only the ComplexTitleInputWidget itself can be.
- 'infusable' => false,
'relative' => true,
'namespace' => isset( $config['namespace']['value'] ) ?
$config['namespace']['value'] :
*/
public function __construct( array $config = [] ) {
$config = array_merge( [
- 'infusable' => true,
'maxLength' => null,
'type' => 'search',
'icon' => 'search',
public function __construct( array $config = [] ) {
// Parent constructor
parent::__construct(
- array_merge( [ 'infusable' => true, 'maxLength' => 255 ], $config )
+ array_merge( [ 'maxLength' => 255 ], $config )
);
// Properties, which are ignored in PHP and just shipped back to JS
*/
public function __construct( array $config = [] ) {
// Parent constructor
- parent::__construct( array_merge( [ 'infusable' => true ], $config ) );
+ parent::__construct( $config );
// Initialization
$this->addClasses( [ 'mw-widget-userInputWidget' ] );