jondavidjohn / payform

:credit_card: A library for building credit card forms, validating inputs, and formatting numbers.
https://jondavidjohn.github.io/payform/
Other
427 stars 81 forks source link

Ignore single digit removal when selection length is not equal to 1 #48

Closed ddayguerrero closed 6 years ago

ddayguerrero commented 6 years ago

Changes

Fixes #29

Why introduce these changes?

How is this achieved?

Given that a format is triggered by a Backspace/Delete (key code 8) key and that the selection length is not equal to 1, end function execution and ultimately ignore the following: