# TextInput
$textAttribs = [
- 'id' => $this->mID . '-other',
'name' => $this->mName . '-other',
'size' => $this->getSize(),
'class' => [ 'mw-htmlform-select-and-other-field' ],
- 'data-id-select' => $this->mID,
+ 'data-id-select' => $this->mID . '-select',
'value' => $value[2],
];
# DropdownInput
$dropdownInputAttribs = [
'name' => $this->mName,
- 'id' => $this->mID,
+ 'id' => $this->mID . '-select',
'options' => $this->getOptionsOOUI(),
'value' => $value[1],
];
}
return $this->getInputWidget( [
+ 'id' => $this->mID,
'textinput' => $textAttribs,
'dropdowninput' => $dropdownInputAttribs,
'or' => false,
}
public function getInputWidget( $params ) {
- return new Mediawiki\Widget\SelectWithInputWidget( $params );
+ return new MediaWiki\Widget\SelectWithInputWidget( $params );
}
/**