File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export class FormSelect extends Component<FormSelectOptions> {
44
44
wrapper : HTMLDivElement ;
45
45
selectOptions : ( HTMLOptionElement | HTMLOptGroupElement ) [ ] ;
46
46
private _values : ValueStruct [ ] ;
47
+ nativeTabIndex : number ;
47
48
48
49
constructor ( el : HTMLSelectElement , options : FormSelectOptions ) {
49
50
super ( el , options , FormSelect ) ;
@@ -56,6 +57,7 @@ export class FormSelect extends Component<FormSelectOptions> {
56
57
} ;
57
58
58
59
this . isMultiple = this . el . multiple ;
60
+ this . nativeTabIndex = ( this . el . tabIndex ?? - 1 ) ;
59
61
this . el . tabIndex = - 1 ;
60
62
this . _values = [ ] ;
61
63
this . _setupDropdown ( ) ;
@@ -258,6 +260,7 @@ export class FormSelect extends Component<FormSelectOptions> {
258
260
this . input . ariaReadOnly = 'true' ;
259
261
this . input . ariaRequired = this . el . hasAttribute ( 'required' ) . toString ( ) ; //setAttribute("aria-required", this.el.hasAttribute("required"));
260
262
if ( this . el . disabled ) this . input . disabled = true ; // 'true');
263
+ this . input . setAttribute ( 'tabindex' , this . nativeTabIndex . toString ( ) ) ;
261
264
262
265
const attrs = this . el . attributes ;
263
266
for ( let i = 0 ; i < attrs . length ; ++ i ) {
You can’t perform that action at this time.
0 commit comments