PolymerElements / gold-cc-input

An input element that only allows credit card numbers
https://webcomponents.org/element/PolymerElements/gold-cc-input
13 stars 23 forks source link

`invalid` property doesn't update #56

Open zbury opened 7 years ago

zbury commented 7 years ago

The invalid property doesn't seem to be updating properly. Somehow the validate() function returns false and yet invalid remains false as well. The underlying input container has the correct value for invalid, because the invalid styling (red underline) gets applied. Seems like it's just not getting propagated correctly.

Here's a demo: https://jsbin.com/rolano/edit?html,console,output

mcrowder65 commented 7 years ago

Can we get this merged?