protected $mButtonValue;
/** @var string $mButtonType Value for the button in this field */
- protected $mButtonFlags = [ 'primary', 'progressive' ];
+ protected $mButtonFlags = [ 'progressive' ];
public function __construct( $info ) {
if ( isset( $info['buttonclass'] ) ) {
'type' => $this->mButtonType,
'label' => $this->mButtonValue,
'flags' => $this->mButtonFlags,
- ] );
+ ] + OOUI\Element::configFromHtmlAttributes(
+ $this->getAttributes( [ 'disabled', 'tabindex' ] )
+ ) );
}
/**