plentz / jquery-maskmoney

jQuery plugin to mask data entry in the input text in the form of money (currency).
https://plentz.github.io/jquery-maskmoney/
MIT License
964 stars 506 forks source link

i'm receiving an error: InvalidStateError #243

Open sebastiaoLa opened 6 years ago

sebastiaoLa commented 6 years ago

InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable jquery.maskMoney.min.js:10

init/</< http://localhost:8000/static/assets/pages/scripts/jquery.maskMoney.min.js:10:6243

dispatch http://localhost:8000/static/assets/global/plugins/jquery.min.js:3:12396

add/r.handle http://localhost:8000/static/assets/global/plugins/jquery.min.js:3:9158

TypeError: document.selection is undefined [Learn More] jquery.maskMoney.min.js:10:2645

a http://localhost:8000/static/assets/pages/scripts/jquery.maskMoney.min.js:10:2645

init/</< http://localhost:8000/static/assets/pages/scripts/jquery.maskMoney.min.js:10:5329

dispatch http://localhost:8000/static/assets/global/plugins/jquery.min.js:3:12396

add/r.handle http://localhost:8000/static/assets/global/plugins/jquery.min.js:3:9158

sebastiaoLa commented 6 years ago

right when page loads before apply the mask

manfredjb commented 6 years ago

Or when your input is type of number.