We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf9b7f6 commit 142b5ccCopy full SHA for 142b5cc
packages/common-ui/src/utils/SkldrMouseTrap.ts
@@ -17,6 +17,15 @@ export interface HotKeyMetaData {
17
*/
18
function inputElementIsFocused(): boolean {
19
const activeElement = document.activeElement;
20
+
21
+ // Special handling for checkbox and radio inputs
22
+ if (
23
+ activeElement instanceof HTMLInputElement &&
24
+ (activeElement.type === 'checkbox' || activeElement.type === 'radio')
25
+ ) {
26
+ return false;
27
+ }
28
29
return (
30
activeElement instanceof HTMLElement &&
31
(activeElement.tagName === 'INPUT' ||
0 commit comments