Closed ermish closed 8 years ago
Closing, as this doesn't have any reproducible steps (and from the described steps any number of things can go wrong). Please provide a JSBin with some repro code, and we'll reopen the issue then. Thanks!
I've added a demo. It looks like the issue also happens on initial data-binding in the jsBin.
Description
Hey, Team!
When a
gold-phone-input
is nested in a dom-repeat, the formatting is not run on bound value. I believe I've tracked down the issue to this code:It looks like if the element is not yet visible (since it's created in the dom-repeat loop), oldValue is
undefined
and the formatting is skipped. IfoldValue == undefined
is removed, it fixes the issue, but the function is ran sometimes unnecessarily.I can create a pull request if this solution works.
Expected outcome
should render
987-654-3210
,Actual outcome
Instead it renders
9876543210
.Live Demo
jsBin
Steps to reproduce
1.start with empty model (array)
Browsers Affected