Closed notwaldorf closed 8 years ago
Fixes https://github.com/PolymerElements/gold-cc-input/issues/38.
The test is failing because focusing a gold-cc-input needs to focus the inner native <input> element, which actually fires a blur event (see https://github.com/PolymerElements/paper-input/blob/master/test/paper-input.html#L199 for more details). So if we're listening for blur, that's not great.
gold-cc-input
<input>
blur
We don't actually need to use the event listener at all, and just synchronously check the effect.
LGTM :+1:
Fixes https://github.com/PolymerElements/gold-cc-input/issues/38.
The test is failing because focusing a
gold-cc-input
needs to focus the inner native<input>
element, which actually fires ablur
event (see https://github.com/PolymerElements/paper-input/blob/master/test/paper-input.html#L199 for more details). So if we're listening for blur, that's not great.We don't actually need to use the event listener at all, and just synchronously check the effect.