Skip to content

Commit

Permalink
fix(components): fix post-collapsible invalid selector error (#3759)
Browse files Browse the repository at this point in the history
  • Loading branch information
alizedebray authored Oct 16, 2024
1 parent 5672deb commit f9f0d6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/grumpy-parrots-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-components': patch
---

Fixed an issue with the post-collapsible throwing an invalid selector error.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class PostCollapsible {
*/
private updateTriggers() {
const triggers: NodeListOf<HTMLPostCollapsibleTriggerElement> = document.querySelectorAll(
`post-collapsible-trigger[for=${this.host.id}]`,
`post-collapsible-trigger[for="${this.host.id}"]`,
);

triggers.forEach(trigger => trigger.update());
Expand Down

0 comments on commit f9f0d6a

Please sign in to comment.