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
[Bug]: inputs in Modals lose focus every key press #1622
Comments
@AshotN did you find a solution to this? |
@dziraf please can you have a look at this? |
No, I haven't found a solution. It's still a problem for me. |
@AshotN I managed to get around it using useRef by doing the following:
However, this hack does not work for CurrencyInput. @dziraf do you intend to solve this bug anytime soon? CurrencyInput is very important to us. |
Ya that's a bit hacky, but probably a good stop gap. Hoping there is a proper fix soon. |
Contact Details
No response
What happened?
I am using a custom component that is a modal with an input field in it. Every
onChange
event causes a re-render and the input loses focus.Bug prevalence
Often
AdminJS dependencies version
What browsers do you see the problem on?
Firefox
Relevant log output
No response
Relevant code that's giving you issues
The text was updated successfully, but these errors were encountered: