Skip to content

Commit 0111a88

Browse files
committed
work
1 parent f23728d commit 0111a88

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/frontend/navi/src/control/control_hooks.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,10 @@ export const useControlProps = (
452452
return {
453453
name: `click on ${props.type}`,
454454
category: "request_update", // click is requesting to check/uncheck from browser perspective
455-
allowed: () => triggerUIAction(e),
455+
// Do NOT call triggerUIAction here: the browser will fire its own "input" event
456+
// after the click which will sync the state and trigger uiAction.
457+
// Calling triggerUIAction here would dispatch a synthetic input + the browser
458+
// dispatches a real input → two uiAction calls for a single click.
456459
prevented: () => e.preventDefault(),
457460
};
458461
},

0 commit comments

Comments
 (0)