unicef / etools-issues

0 stars 2 forks source link

Esmm dropdown, paper-input autovalidate changes #258

Closed adi130987 closed 7 years ago

adi130987 commented 7 years ago

esmm dropdown, paper-input or other fields that are using autovalidate must depend on the used data. Ex: load interventions list and click add new, validations are shown by default in some cases, even save was not used. This happens because autovalidate is used and the data set on the element is null in case of new intervention page.

adi130987 commented 7 years ago

screenshot from 2017-04-11 15 53 28

daniel-tabarcea commented 7 years ago

I'm presuming auto-validate is needed so we don't send requests unless they're complete, right?

adi130987 commented 7 years ago

It's just a UI thing in case the template is rendered and then empty data is initialized, auto-validate triggers the validation and it should not do that at first time form loads.

daniel-tabarcea commented 7 years ago

It seems to work better without auto-validate than with it. How can i reproduce the situation with empty data initialized?

adi130987 commented 7 years ago

Reload interventions list, then click add new.