File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,18 @@ export class HXTabsetElement extends HXElement {
3030 }
3131
3232 $onConnect ( ) {
33- this . $upgradeProperty ( 'current-tab' ) ;
34- this . $defaultAttribute ( 'id' , this . $generateId ( ) ) ;
35- this . _setupIds ( ) ;
36- this . currentTab = Number ( this . getAttribute ( 'current-tab' ) ) || 0 ;
37- this . $tablist = this . querySelector ( 'hx-tablist' ) ;
38- this . $tablist . addEventListener ( 'keyup' , this . _onKeyUp ) ;
39- this . $tablist . addEventListener ( 'keydown' , this . $preventScroll ) ;
40- this . tabs . forEach ( tab => {
41- tab . addEventListener ( 'click' , this . _onTabClick ) ;
42- } ) ;
33+ setTimeout ( ( ) => {
34+ this . $upgradeProperty ( 'current-tab' ) ;
35+ this . $defaultAttribute ( 'id' , this . $generateId ( ) ) ;
36+ this . _setupIds ( ) ;
37+ this . currentTab = Number ( this . getAttribute ( 'current-tab' ) ) || 0 ;
38+ this . $tablist = this . querySelector ( 'hx-tablist' ) ;
39+ this . $tablist . addEventListener ( 'keyup' , this . _onKeyUp ) ;
40+ this . $tablist . addEventListener ( 'keydown' , this . $preventScroll ) ;
41+ this . tabs . forEach ( tab => {
42+ tab . addEventListener ( 'click' , this . _onTabClick ) ;
43+ } ) ;
44+ } , 0 ) ; // temp fix for SURF-1396, IE11/Edge bug
4345 }
4446
4547 $onDisconnect ( ) {
You can’t perform that action at this time.
0 commit comments