-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Modal & redux-form doesn't work : focus lose. #1370
Comments
What version are you using? Can you post a codepen.io example for debugging? |
I'm sorry I have no idea how to use codepen with React/ReduxForm & Semantic ... Do you have Codepen boilerplate ? |
Yes, please take a moment to read the issue template as it is included in there along with other good info for posting issues: |
Not an expert on either this component or redux-form, but this is generally caused by redux-form tracking specific component instances, and when those instances are recreated it loses track of what's what. Haven't actually checked a repro out yet, but food for thought for the two of you; not sure who (SUIR or RF or some combination) is at fault here, but that's probably a good starting point. |
Appears OpenClosedForm input gets unfocused after typing in 1 character. #1853 [6.0.1] Dependent Input Field loses focus #1672 Fields losing focus on change/blur, Form Re Registering fields #1609 input field loses focus on first form input character #1571 Input loses focus after a single "keyDown" event #1557 v6 proposal regarding loss of focus when stateless functions are passed to [v6] fields losing focus after first onChange #1094 v6 (alpha 9): Some input fields lose focus after typing #961 |
I had a similar problem: form in modal was being cleared whenever I resized the window. I fixed it by adding:
and passing it to reduxForm. I think the component was being unmounted and then reseting the state. I hope it helps. |
Hey, I'm using Modal to show some Forms with redux-form.
Everything is working good, but one thing have weird behavior : focus on fields after typing first char.
When user write the first char in any input (Semantic Input or html5 input), we loose focus on this same field.
I made an simple redux-form => working perfectly.
I put this exactly same form inside simple modal => focus bug.
In this example, my form is connected with my redux-store. It's working, but there's still focus issue.
If I remove Modal => it's working.
Thanks for your helps.
The text was updated successfully, but these errors were encountered: