X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLComboboxField.php;h=778aedbc8a546b01c1e23c239de6960bb5bb2887;hb=03d1d295b99713bbe4657d26448bb7fc2b57d013;hp=a0f248fdea8937d5d2f31950ee82f02b65e31b3d;hpb=9ba3fca2d8adc56787c8efc32c41424cb212e387;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLComboboxField.php b/includes/htmlform/HTMLComboboxField.php index a0f248fdea..778aedbc8a 100644 --- a/includes/htmlform/HTMLComboboxField.php +++ b/includes/htmlform/HTMLComboboxField.php @@ -16,11 +16,11 @@ */ class HTMLComboboxField extends HTMLTextField { // FIXME Ewww, this shouldn't be adding any attributes not requested in $list :( - public function getAttributes( array $list, array $mappings = null ) { + public function getAttributes( array $list ) { $attribs = [ 'type' => 'text', 'list' => $this->mName . '-datalist', - ] + parent::getAttributes( $list, $mappings ); + ] + parent::getAttributes( $list ); return $attribs; } @@ -36,7 +36,9 @@ class HTMLComboboxField extends HTMLTextField { function getInputOOUI( $value ) { $disabled = false; $allowedParams = [ 'tabindex' ]; - $attribs = $this->getAttributes( $allowedParams, [ 'tabindex' => 'tabIndex' ] ); + $attribs = OOUI\Element::configFromHtmlAttributes( + $this->getAttributes( $allowedParams ) + ); if ( $this->mClass !== '' ) { $attribs['classes'] = [ $this->mClass ];