-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Reagent component with input box loses focus on change when tracking atom #52
Comments
Try adding :watch-atom false to the devcards options |
Adding :watch-atom false to the options had no effect. |
Hmmmm must be a bug ... I think that option is being ignored. |
I found the problem in Reagent: |
and here is a new version of your gist fixed |
Cool! Thanks for tracking that down. I will track the upstream issue. Closing this one down. Thanks again! Your tools really do make UI work pleasant. |
I was wrong about that I am fixing this in Devcards right now. |
This is fixed in the recent release of Devcards. |
Having a lot of fun with devcards and figwheel, but ran into the following issue: if I add a reagent component with an input box that updates on change to a card and also try tracking the atom those changes flow to, the input box loses focus on every change, i.e. on every keystroke. Gist to reproduce is here.
Note that there is an easy enough workaround for this: duplicate the card, but don't pass the state atom to that one. The one without the atom accepts changes to the input box without losing focus just fine, and you still get the live state display and history tracking in the other card, which otherwise works just fine.
The text was updated successfully, but these errors were encountered: