diffusionkinetics / open

DiffusionKinetics open-source monorepo
MIT License
115 stars 24 forks source link

Fix multiple lensing #39

Closed nskeip closed 7 years ago

nskeip commented 7 years ago

Bug: if multiple fields lens to one field, the first input's value will be taken, others will be discarded.

For example, if we got form like this:

"Name input #1:"
textInput pname
br_ []

"Name input #2:"
textInput pname
br_ []

(This example is available in TestDashdo.hs)

Input #2 is correctly updated when we update input #1.

But input if we update input #2, the value of input #1 overrides the new value.

How it has been fixed (hacked):