mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +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
|
||||
useEffect(() => {
|
||||
if (inputRef.current) {
|
||||
inputRef.current.rootNode.querySelector('input[type=search]').focus();
|
||||
inputRef.current.rootNode.querySelector('input[type=search]')?.focus();
|
||||
}
|
||||
}, [inputRef]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user