Previously 'readOnly' was set to an empty string, which casts to boolean
false.
Change-Id: I7d1e7f02731c7235da2ae1e0a5e3d0be2b44d978
'tabindex' => 'tabIndex',
) );
'tabindex' => 'tabIndex',
) );
+ if ( isset( $attribs['readOnly'] ) ) {
+ // This needs to be set to a boolean value
+ $attribs['readOnly'] = true;
+ }
+
$type = $this->getType( $attribs );
return new OOUI\TextInputWidget( array(
$type = $this->getType( $attribs );
return new OOUI\TextInputWidget( array(