Skip to content

Commit

Permalink
add bubbles to change event
Browse files Browse the repository at this point in the history
svelte-5 onchange handler doesn't fire otherwise
  • Loading branch information
CaptainCodeman committed Jun 22, 2024
1 parent 1bf7083 commit 22e0f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "svelte-headlessui",
"description": "HeadlessUI components for Svelte",
"version": "0.0.39",
"version": "0.0.40",
"type": "module",
"keywords": [
"svelte",
Expand Down
1 change: 1 addition & 0 deletions src/lib/internal/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const raiseChangeOnSelect =
const event = new CustomEvent('change', {
detail: {
selected,
bubbles: true,
},
})
node.dispatchEvent(event)
Expand Down

0 comments on commit 22e0f4e

Please sign in to comment.