We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I want to programatically .focus() the input element, I have to use findDOMNode which is deprecated and on the way out.
.focus()
findDOMNode
It would be really useful to expose an option to pass a ref so I could manipulate the input field.
For example, using a keyboard shortcut and mousetrap.
export default function Omnisearch () { const inputRef = useRef(null) const focusSearch = (e) => { e.preventDefault() inputRef.focus() } useMousetrap('/', focusSearch) useMousetrap('s', focusSearch) return ( <Omnibar inputRef={inputRef} /> ) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I want to programatically
.focus()
the input element, I have to usefindDOMNode
which is deprecated and on the way out.It would be really useful to expose an option to pass a ref so I could manipulate the input field.
For example, using a keyboard shortcut and mousetrap.
The text was updated successfully, but these errors were encountered: