śr., 21 gru 2016 o 19:09 użytkownik Wouter In t Velt <
[email protected]> napisał:

> Do you still set the input value + onInput handler in the lazy variant?
> And does that also somehow prevent the "leak" of input value to a next
> render?
>
>
> Recently I ported 0.16 app where I used "lazy" with input "value" and
"onInput" handler to 0.18. I didn't change it (mainly because I didn't know
about "defaultValue") and it still works as expected. I've never seen any
"leak" problem that you presented but it may be because of in my view:
- "lazy" is checking (after every key press) wherever if there is an input
validation error in the model and if so it rerenders the input with the
value, error text and some different css
- even if it reuses the input at other place it has to change the value
because it is set by the "Html.value" so user doesn't see anything wrong

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to