diff --git a/.changeset/grumpy-parrots-wonder.md b/.changeset/grumpy-parrots-wonder.md new file mode 100644 index 0000000000..1942021760 --- /dev/null +++ b/.changeset/grumpy-parrots-wonder.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-components': patch +--- + +Fixed an issue with the post-collapsible throwing an invalid selector error. diff --git a/packages/components/src/components/post-collapsible/post-collapsible.tsx b/packages/components/src/components/post-collapsible/post-collapsible.tsx index 6bf09804d5..85b8a04165 100644 --- a/packages/components/src/components/post-collapsible/post-collapsible.tsx +++ b/packages/components/src/components/post-collapsible/post-collapsible.tsx @@ -87,7 +87,7 @@ export class PostCollapsible { */ private updateTriggers() { const triggers: NodeListOf = document.querySelectorAll( - `post-collapsible-trigger[for=${this.host.id}]`, + `post-collapsible-trigger[for="${this.host.id}"]`, ); triggers.forEach(trigger => trigger.update());