X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLComboboxField.php;h=3f63c18eed9d3b00ced55ed63f822e794cc02c41;hb=462bce95a9e824923f8b44dcf1ab405a6497d088;hp=778aedbc8a546b01c1e23c239de6960bb5bb2887;hpb=500889f19005b4aed93c5b6eaafd35689fce7dcd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLComboboxField.php b/includes/htmlform/fields/HTMLComboboxField.php index 778aedbc8a..3f63c18eed 100644 --- a/includes/htmlform/fields/HTMLComboboxField.php +++ b/includes/htmlform/fields/HTMLComboboxField.php @@ -25,7 +25,7 @@ class HTMLComboboxField extends HTMLTextField { return $attribs; } - function getInputHTML( $value ) { + public function getInputHTML( $value ) { $datalist = new XmlSelect( false, $this->mName . '-datalist' ); $datalist->setTagName( 'datalist' ); $datalist->addOptions( $this->getOptions() ); @@ -33,7 +33,7 @@ class HTMLComboboxField extends HTMLTextField { return parent::getInputHTML( $value ) . $datalist->getHTML(); } - function getInputOOUI( $value ) { + public function getInputOOUI( $value ) { $disabled = false; $allowedParams = [ 'tabindex' ]; $attribs = OOUI\Element::configFromHtmlAttributes( @@ -56,4 +56,8 @@ class HTMLComboboxField extends HTMLTextField { 'disabled' => $disabled, ] + $attribs ); } + + protected function shouldInfuseOOUI() { + return true; + } }