There was an error while loading. Please reload this page.
1 parent f23728d commit 0111a88Copy full SHA for 0111a88
1 file changed
packages/frontend/navi/src/control/control_hooks.jsx
@@ -452,7 +452,10 @@ export const useControlProps = (
452
return {
453
name: `click on ${props.type}`,
454
category: "request_update", // click is requesting to check/uncheck from browser perspective
455
- allowed: () => triggerUIAction(e),
+ // 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.
459
prevented: () => e.preventDefault(),
460
};
461
},
0 commit comments