-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
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
Can't seem to autofocus the searchbar #95
Comments
I have tried following these suggestions, but can't seem to get it working. I am using Typescript and Hooks |
Have tried using the following approach: searchbar in view:
useFocus.ts
In which I thought was going to work, but it did not. I even increased the timer to a second instead of 100ms. |
I see that in this example, the autoFocus-prop is properly working. I've tested it, and it seems to work in jsx, but not in tsx.
|
Fixed it locally by changing index.d.ts for now. You may have a better solution for this, but I just added
|
@leMaik Could you take a look at the PR? This issue can be closed |
I am trying to automatically focus this component on render.
Have tried passing autoFocus as a prop, as the ReadMe states that "Any other properties supplied will be spread to the underlying Input component." Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: