mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
This commit is contained in:
parent
124678e701
commit
09b113e0df
@ -66,7 +66,7 @@ export const AccountListMenu = ({ onClose }) => {
|
|||||||
// Focus on the search box when the popover is opened
|
// Focus on the search box when the popover is opened
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (inputRef.current) {
|
if (inputRef.current) {
|
||||||
inputRef.current.rootNode.querySelector('input[type=search]').focus();
|
inputRef.current.rootNode.querySelector('input[type=search]')?.focus();
|
||||||
}
|
}
|
||||||
}, [inputRef]);
|
}, [inputRef]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user