jaridmargolin / formatter.js

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

Backspace should remove placeholder + preceeding char #74

Open bbrooks opened 9 years ago

bbrooks commented 9 years ago

If your cursor is immediately following a placeholder char, hitting backspace should remove the placeholder and the char preceding it.

Fixes https://github.com/firstopinion/formatter.js/issues/75

bbrooks commented 9 years ago

I'm not sure what kind of behavior you want for the persistent case, so I made this change only for non-persistent situations. Interested to hear your thoughts on the desired behavior.

croby commented 9 years ago

@jaridmargolin, would love to see this merged