jaridmargolin / formatter.js

Format html inputs to match a specified pattern
http://firstopinion.github.io/formatter.js
2.48k stars 235 forks source link

Input field does not reformat on text drag #20

Open granttitus opened 10 years ago

granttitus commented 10 years ago

The input field messes up if a user highlights some text, drags, and then releases.

1. Input Text

screen shot 2013-11-13 at 8 46 56 pm

2. Highlight Section

screen shot 2013-11-13 at 8 46 46 pm

3. Drag + Release

screen shot 2013-11-13 at 8 47 44 pm

Adding an input event and reformatting when it's fired seemed to fix the problem. Here's the gist.

jaridmargolin commented 10 years ago

Agreed that this is an issue, and thank you for the gist. Unfortunately, as I understand it, the 'input' event was not added until IE9. Currently formatter.js supports back to IE7. Let me look into other solutions.

granttitus commented 10 years ago

Alright. I'll look around for an IE7+ solution as well.