We're using your really cool library but hit a small bug. When changing the mask of an input, the focus is given to that input on Safari only. We suspect that their selection API implementation gives the focus to the affected input, while other browser seem to do no nothing.
Adding a simple check to not change the selection when the field is not focused seems to resolve the problem.
@sanniassin I had to add built files to our master because we directly depend on it while waiting for this PR. #154 comes with only the right changes. Sorry for the confusion.
Hey,
We're using your really cool library but hit a small bug. When changing the mask of an input, the focus is given to that input on Safari only. We suspect that their selection API implementation gives the focus to the affected input, while other browser seem to do no nothing.
Adding a simple check to not change the selection when the field is not focused seems to resolve the problem.
Thanks!