File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -158,10 +158,8 @@ export class TabHeaders implements AfterViewInit, AfterContentInit {
158158 }
159159
160160 this . tabs . forEach ( tab => tab . cacheActive = this . cacheActive ) ;
161- this . tabs . changes . subscribe ( changes => {
161+ this . tabs . changes . subscribe ( ( ) => {
162162 this . setFirstTab ( ) ;
163- // if the tabs have updated, there's a good chance the overflow will need to as well
164- setTimeout ( ( ) => { } ) ;
165163 // also update the tab headers list
166164 this . allTabHeaders = this . headerContainer . nativeElement . querySelectorAll ( "li a" ) ;
167165 } ) ;
@@ -173,10 +171,6 @@ export class TabHeaders implements AfterViewInit, AfterContentInit {
173171 * @memberof TabHeaders
174172 */
175173 ngAfterViewInit ( ) {
176- // check for window resize
177- fromEvent ( window , "resize" )
178- . pipe ( throttleTime ( 100 ) )
179- . subscribe ( ( ) => { } ) ;
180174 this . allTabHeaders = this . headerContainer . nativeElement . querySelectorAll ( "li a" ) ;
181175 }
182176
You can’t perform that action at this time.
0 commit comments