Skip to content

Commit

Permalink
chore(esl-toggleable): code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
fshovchko committed Jul 20, 2023
1 parent fa9e476 commit 1a13082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/esl-toggleable/core/esl-toggleable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ export class ESLToggleable extends ESLBaseElement {
protected override attributeChangedCallback(attrName: string, oldVal: string, newVal: string): void {
if (!this.connected || newVal === oldVal) return;
switch (attrName) {
case 'open':
// eslint-disable-next-line no-case-declarations
case 'open': {
const isOpen = this.hasAttribute('open');
if (this.open === isOpen) return;
this.toggle(isOpen, {initiator: 'attribute', showDelay: 0, hideDelay: 0});
break;
}
case 'group':
this.$$fire(this.GROUP_CHANGED_EVENT, {
detail: {oldGroupName: oldVal, newGroupName: newVal}
Expand Down

0 comments on commit 1a13082

Please sign in to comment.