zdfs / toscani

This is a jQuery-based, progressively-enhanced solution for creating a single-field credit card input. The idea is to create a more streamlined credit card entry process.
872 stars 102 forks source link

no ability to select the numbers #12

Open anselmh opened 11 years ago

anselmh commented 11 years ago

There is no ability to select the numbers after entering some. It just deselects immediately.

rakeev commented 11 years ago

+1 and no way to correct one digit in the beginning of number

zdfs commented 11 years ago

This is an issue with the input masking plugin, not the experiment itself.

anselmh commented 11 years ago

The input masking plugin has an option to disable 'disabling native focus'. This should fix the issue. From accessbility view the input masking plugin is not good as it is implemented here. I don't really know if that is a general problem with this plugin. Can you investigate here and if it's not fixable on your own, file an issue over at the plugin's repo? Would love to see this code more accessible and usable because it is a great idea. :)

zdfs commented 11 years ago

Considering that this is labeled as an "experiment", I'm not sure when I'm going to have time to investigate. If I remember correctly, I did turn off "disabling native focus" and it only presented even more problems. In my opinion, input masking should be provided natively, but as far as I'm aware, no discussions are being had at the WHATWG or any other body around this topic.

The experiment itself was never developed for production, just an attempt to see how far I could take it. I have more ideas, especially for mobile, but my time to dedicate to this is very limited.

anselmh commented 11 years ago

Okay, thanks for explaining. Maybe you should add this to the README to avoid people use this in production.