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 64f5a68 commit fd992b0Copy full SHA for fd992b0
packages/ui/src/lib/focus/focusManager.ts
@@ -89,18 +89,18 @@ export class FocusManager {
89
return;
90
}
91
92
- // TODO: Allow clicks inside inputs to set `this.currentNode`
93
- if (isInputElement(e.target)) {
94
- return;
95
- }
96
-
97
if (e.target instanceof HTMLElement) {
98
const focusableNode = this.findNearestFocusableElement(e.target);
99
if (focusableNode) {
100
this.setActiveNode(focusableNode);
101
this.setOutline(false);
102
103
+
+ // TODO: Find a way to update the focusable without causing target to blur.
+ if (isInputElement(e.target)) {
+ e.target.focus();
+ }
104
105
106
// Handles hotkeys for instant button activation (supports complex combinations like ⇧⌘P)
0 commit comments