Skip to content

Commit

Permalink
fix(esl-tab): fix esl-tabs initialization delay before DOM ready
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Mar 8, 2024
1 parent 5406a0d commit 52b0beb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/esl-tab/core/esl-tabs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ExportNs} from '../../esl-utils/environment/export-ns';
import {ESLBaseElement} from '../../esl-base-element/core';
import {rafDecorator} from '../../esl-utils/async/raf';
import {memoize, attr, listen, decorate} from '../../esl-utils/decorators';
import {memoize, attr, listen, decorate, ready} from '../../esl-utils/decorators';
import {isRTL, RTLScroll} from '../../esl-utils/dom/rtl';
import {debounce} from '../../esl-utils/async/debounce';
import {ESLResizeObserverTarget} from '../../esl-event-listener/core';
Expand Down Expand Up @@ -51,6 +51,7 @@ export class ESLTabs extends ESLBaseElement {
return this.scrollableTypeRules.activeValue || 'side';
}

@ready
protected override connectedCallback(): void {
super.connectedCallback();
this.updateScrollableType();
Expand Down

0 comments on commit 52b0beb

Please sign in to comment.