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 505 forks source link

Not working in Android devices #252

Open ademir10 opened 6 years ago

ademir10 commented 6 years ago

Hello! do you know what can i do to makes it work with chrome in android devices? Everything is workin fine in Pc's, IOS with chrome or safari, but when i try to use in Android devices with chrome nothing happens. I'm using: jquery-maskmoney - v3.1.1 There is any way to fix it? thanks!

alexnovelli commented 6 years ago

Same problem here. Some help please?

alexnovelli commented 6 years ago

I find the solution in this issue: https://github.com/plentz/jquery-maskmoney/issues/203

The solution was provided by the user @abdulmhamid

"I was able to solve it with this. It mimics the keypress function and I placed it right before the keydown function."

$input.on('keyup', function (e) { e = e || window.event; var key = e.which || e.charCode || e.keyCode, keyPressedChar, selection, startPos, endPos, value; selection = getInputSelection(); startPos = selection.start; maskAndPosition(startPos + 1); });

wallisonfelipe commented 2 years ago

any update?