File tree Expand file tree Collapse file tree 3 files changed +4
-32
lines changed Expand file tree Collapse file tree 3 files changed +4
-32
lines changed Original file line number Diff line number Diff line change @@ -107,14 +107,7 @@ class CheckboxView extends DescriptionView {
107
107
if ( ! this . checkbox ) {
108
108
return ; // we might be constructing the parent
109
109
}
110
- let tabbable = this . model . get ( 'tabbable' ) ;
111
- if ( tabbable === true ) {
112
- this . el . setAttribute ( 'tabIndex' , '0' ) ;
113
- } else if ( tabbable === false ) {
114
- this . el . setAttribute ( 'tabIndex' , '-1' ) ;
115
- } else if ( tabbable === null ) {
116
- this . el . removeAttribute ( 'tabIndex' ) ;
117
- }
110
+ super . updateTabindex ( ) ;
118
111
}
119
112
120
113
events ( ) : { [ e : string ] : string } {
Original file line number Diff line number Diff line change @@ -62,14 +62,7 @@ class SelectionView extends DescriptionView {
62
62
if ( ! this . listbox ) {
63
63
return ; // we might be constructing the parent
64
64
}
65
- let tabbable = this . model . get ( 'tabbable' ) ;
66
- if ( tabbable === true ) {
67
- this . el . setAttribute ( 'tabIndex' , '0' ) ;
68
- } else if ( tabbable === false ) {
69
- this . el . setAttribute ( 'tabIndex' , '-1' ) ;
70
- } else if ( tabbable === null ) {
71
- this . el . removeAttribute ( 'tabIndex' ) ;
72
- }
65
+ super . updateTabindex ( ) ;
73
66
}
74
67
75
68
listbox : HTMLSelectElement ;
Original file line number Diff line number Diff line change @@ -214,14 +214,7 @@ class TextareaView extends DescriptionView {
214
214
if ( ! this . textbox ) {
215
215
return ; // we might be constructing the parent
216
216
}
217
- let tabbable = this . model . get ( 'tabbable' ) ;
218
- if ( tabbable === true ) {
219
- this . el . setAttribute ( 'tabIndex' , '0' ) ;
220
- } else if ( tabbable === false ) {
221
- this . el . setAttribute ( 'tabIndex' , '-1' ) ;
222
- } else if ( tabbable === null ) {
223
- this . el . removeAttribute ( 'tabIndex' ) ;
224
- }
217
+ super . updateTabindex ( ) ;
225
218
}
226
219
227
220
events ( ) {
@@ -329,14 +322,7 @@ class TextView extends DescriptionView {
329
322
if ( ! this . textbox ) {
330
323
return ; // we might be constructing the parent
331
324
}
332
- let tabbable = this . model . get ( 'tabbable' ) ;
333
- if ( tabbable === true ) {
334
- this . el . setAttribute ( 'tabIndex' , '0' ) ;
335
- } else if ( tabbable === false ) {
336
- this . el . setAttribute ( 'tabIndex' , '-1' ) ;
337
- } else if ( tabbable === null ) {
338
- this . el . removeAttribute ( 'tabIndex' ) ;
339
- }
325
+ super . updateTabindex ( ) ;
340
326
}
341
327
342
328
update ( options ?: any ) {
You can’t perform that action at this time.
0 commit comments