Skip to content

Commit

Permalink
Merge pull request #31 from zipper/fix-responsive-default-expanded
Browse files Browse the repository at this point in the history
fix: Fixed data attibute name for responsive default expanded items
  • Loading branch information
zipper authored Jan 18, 2024
2 parents aef7b78 + 565c46a commit 8b09ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CollapsableItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export class CollapsableItem {

public get isDefaultExpanded(): boolean {
const defaultExpandedClass = this.element.classList.contains(this.collapsable.options.classNames.defaultExpanded)
const mediaDataset = this.element.dataset.defaultCollapsableExpandedMedia
const mediaDataset = this.element.dataset.collapsableDefaultExpandedMedia

if (defaultExpandedClass || !mediaDataset) {
return defaultExpandedClass
Expand Down

0 comments on commit 8b09ad7

Please sign in to comment.