From 52b0bebe18fc19dc5a2ff528f1b6b44a7c79dce5 Mon Sep 17 00:00:00 2001 From: "ala'n (Alexey Stsefanovich)" Date: Fri, 8 Mar 2024 14:26:19 +0100 Subject: [PATCH] fix(esl-tab): fix `esl-tabs` initialization delay before DOM ready --- src/modules/esl-tab/core/esl-tabs.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/esl-tab/core/esl-tabs.ts b/src/modules/esl-tab/core/esl-tabs.ts index 0c7684a0a..b16fb6759 100644 --- a/src/modules/esl-tab/core/esl-tabs.ts +++ b/src/modules/esl-tab/core/esl-tabs.ts @@ -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'; @@ -51,6 +51,7 @@ export class ESLTabs extends ESLBaseElement { return this.scrollableTypeRules.activeValue || 'side'; } + @ready protected override connectedCallback(): void { super.connectedCallback(); this.updateScrollableType();