Skip to content

Commit

Permalink
⚡ add comment for hash accordion bug when init
Browse files Browse the repository at this point in the history
  • Loading branch information
vuquangpham authored and phucbm committed Oct 4, 2022
1 parent e8154fc commit a66a2fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/easy-tab-accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ export class EasyTabAccordion{
this.hasInitialized = false;
this.enabled = validBreakpoints(this) ? isLive(this) : true;
this.count = this.wrapper.querySelectorAll(this.options.trigger).length;

// check the condition at openPanel, when calls close others (because there is no active element at begin)
this.isFirst = true;

// update hash from attribute
Expand Down

0 comments on commit a66a2fd

Please sign in to comment.