Re: [elm-discuss] How to prevent input field values persisting in new views?

2016-12-21 Thread Karol Samborski
I always used "lazy" for not updating value in rendered input after every key press. It is equivalent of react's "shouldComponentUpdate". śr., 21 gru 2016 o 12:28 użytkownik Simon napisał: > Yes, I have the same type of issue, but with the data attached to Blur > messages attached arbitrarily t

Re: [elm-discuss] How to prevent input field values persisting in new views?

2016-12-21 Thread Simon
Yes, I have the same type of issue, but with the data attached to Blur messages attached arbitrarily to messages in new views. The way I solved it so far was to use Html.Keyed on the form page. Simon On Tuesday, 20 December 2016 22:33:26 UTC+1, Duane Johnson wrote: > > > On Tue, Dec 20, 2016 at

Re: [elm-discuss] How to prevent input field values persisting in new views?

2016-12-20 Thread Duane Johnson
On Tue, Dec 20, 2016 at 2:03 PM, Wouter In t Velt wrote: > >- Is there a better way to *prevent* this from happening (rather than >relying on our predictive instincts and applying Keyed when we suspect a >leak)? > > I like that you're asking this question, because for me it sits at th

[elm-discuss] How to prevent input field values persisting in new views?

2016-12-20 Thread Wouter In t Velt
Over on Slack the other day, there was some dialogue about input fields going on. One was about an issue when you set the value in your elm code like this: input [ type_ "text", onInput HandleInput, value model.fieldValue ] [] Issue: when user types really fast, the cursor jumps to the end of t