first commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export function focusNodeOnMount(node: HTMLElement) {
|
||||
// Wrapping in queueMicrotask ensures the node is attached to the
|
||||
// DOM before attempting to focus.
|
||||
queueMicrotask(() => node.focus());
|
||||
}
|
||||
Reference in New Issue
Block a user