The default value '' introduced in #130 seems to break the auto-validate behavior of paper-input, because paper-input assumes an initial value of undefined (see https://github.com/PolymerElements/paper-input/pull/616) to track if the value was changed by a user.
Expected outcome
Auto-validation should only trigger after the first value change initiated by a user.
Actual outcome
Auto-validation triggers immediately, e.g. required text inputs with no initial value are marked red and the error message shows.
Description
The default value
''
introduced in #130 seems to break the auto-validate behavior of paper-input, because paper-input assumes an initial value ofundefined
(see https://github.com/PolymerElements/paper-input/pull/616) to track if the value was changed by a user.Expected outcome
Auto-validation should only trigger after the first value change initiated by a user.
Actual outcome
Auto-validation triggers immediately, e.g. required text inputs with no initial value are marked red and the error message shows.
Live Demo
with iron-input+v2.1.3 (current): https://codepen.io/eidottermihi/pen/jKOvOb with iron-input+v2.1.2 (before #130): https://codepen.io/eidottermihi/pen/jKOvPW
Steps to reproduce
paper-input
element in the page withauto-validate
andrequired
and no initialvalue
.Browsers Affected