plentz / jquery-maskmoney

jQuery plugin to mask data entry in the input text in the form of money (currency).

Home Page:https://plentz.github.io/jquery-maskmoney/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working in Android devices

ademir10 opened this issue · comments

commented

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!

Same problem here. Some help please?

I find the solution in this issue:
#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);
});

any update?