From 565c46a4019e3d6147184401c101d2950e0761ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20=C5=A0er=C3=BD?= Date: Thu, 18 Jan 2024 15:35:01 +0100 Subject: [PATCH] fix: Fixed data attibute name for responsive default expanded items --- src/CollapsableItem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CollapsableItem.ts b/src/CollapsableItem.ts index 6760a1e..5d81fb1 100644 --- a/src/CollapsableItem.ts +++ b/src/CollapsableItem.ts @@ -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