Skip to content

Commit e1f4fc3

Browse files
committed
change event
1 parent d7adb48 commit e1f4fc3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pgml-dashboard/src/components/inputs/radio/radio_controller.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ export default class extends Controller {
1212

1313
e.currentTarget.classList.add("active");
1414
e.currentTarget.ariaPressed = true;
15-
e.currentTarget.querySelector("input").checked = true;
15+
16+
const input = e.currentTarget.querySelector("input");
17+
18+
input.checked = true;
19+
input.dispatchEvent(new Event("change"));
1620
}
1721
}

0 commit comments

Comments
 (0)