You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having issues with resetting an input field after dispatching an event.
Most times the input value doesn't update, although the underlying atom is updated.
I tried to reproduce this, but can't. I copied your snippet, adding a :do-something event handler. I can type into the input. When I hit return, the dispatch function is called and the input is cleared.
Do you get something different? What sequence of steps do you take and exactly when do you see the unexpected behavior? Perhaps it would be useful to know which version of reagent and re-frame you're using, as well as what browser.
Activity
mainej commentedon Oct 30, 2020
I tried to reproduce this, but can't. I copied your snippet, adding a
:do-somethingevent handler. I can type into the input. When I hit return, the dispatch function is called and the input is cleared.Do you get something different? What sequence of steps do you take and exactly when do you see the unexpected behavior? Perhaps it would be useful to know which version of reagent and re-frame you're using, as well as what browser.