Skip to content

Commit

Permalink
fix(pat-checklist): Dispatch input event along change event.
Browse files Browse the repository at this point in the history
pat-depends was not reacting on pat-checklist toggles.
This is fixed by dispatching an input event just after the change event.
  • Loading branch information
thet committed Feb 3, 2025
1 parent 819311c commit 3c298f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pat/checklist/checklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export default Base.extend({
for (const box of chkbxs) {
box.checked = true;
box.dispatchEvent(events.change_event());
box.dispatchEvent(events.input_event());
}
},

Expand All @@ -156,6 +157,7 @@ export default Base.extend({
for (const box of chkbxs) {
box.checked = false;
box.dispatchEvent(events.change_event());
box.dispatchEvent(events.input_event());
}
},

Expand All @@ -166,6 +168,7 @@ export default Base.extend({
for (const box of chkbxs) {
box.checked = checked;
box.dispatchEvent(events.change_event());
box.dispatchEvent(events.input_event());
}
},

Expand Down

0 comments on commit 3c298f5

Please sign in to comment.