You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
Fill in the required Name and Favourite animal fields and check the two (unchecked) required checkboxes
Click SUBMIT
Expected behavior: The form does not submit because the required custom element is empty, and the required custom element gets its "invalid" styling
Actual behavior: The form submits, the required custom element does not get its "invalid" styling.
Please let me know if I'm missing something, as I've been hoping to make progress on #56 and GoogleWebComponents/google-recaptcha#11, and if this is broken in iron-form I better wait for the fix first. Thanks in advance for taking a look.
The text was updated successfully, but these errors were encountered:
When submitting the form without filling in anything in the custom element,
the value of this.value for the custom element would be undefined.
Consequently, the old logic of _getValidity() returning this.value != ''
would return true. Changing this to the less strict check !!this.value
allows it to still be considered invalid when this.value is undefined.
ClosesPolymerElements#58.
Reproduction steps:
Expected behavior: The form does not submit because the required custom element is empty, and the required custom element gets its "invalid" styling
Actual behavior: The form submits, the required custom element does not get its "invalid" styling.
Please let me know if I'm missing something, as I've been hoping to make progress on #56 and GoogleWebComponents/google-recaptcha#11, and if this is broken in iron-form I better wait for the fix first. Thanks in advance for taking a look.
The text was updated successfully, but these errors were encountered: