Closed nskeip closed 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)
TestDashdo.hs
Input #2 is correctly updated when we update input #1.
#2
#1
But input if we update input #2, the value of input #1 overrides the new value.
How it has been fixed (hacked):
parseForm
FormFields a
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:
(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):
parseForm
now runs through POST params looking for corresponding values inFormFields a
- so order matters.