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

preserve caret position when editing #21

Closed notwaldorf closed 9 years ago

notwaldorf commented 9 years ago

When editing, we reset the element's value to the "formatted" one, which moves the caret to the end. This either preserves the caret position, or advances it to adjust for any bonus spaces entered.

And re-enabled the test! :tada:

morethanreal commented 9 years ago

lgtm