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
963 stars 507 forks source link

maskmoney blocks jQuery input event? #244

Open kevlin79 opened 6 years ago

kevlin79 commented 6 years ago

See the simple jsfiddle linked below. One input with and one without mask. The one with mask seems to prevent jQuery input event?

https://jsfiddle.net/z85yuf5t/

marxjmoura commented 6 years ago

If someone is still facing this problem, it is possible to listen the event keyup.maskMoney. It may not be a final solution, but it can help solve this problem for now.

$('#yourInput')
  .maskMoney()
  .on('keyup.maskMoney', function () {
    console.log($(this).val());
  });
brunohkbx commented 6 years ago

I'm having the exact same problem :(

senhordaluz commented 6 years ago

I have the same problem here. Does the keyup.maskMoney fire on mobile like input?

EDIT: It works. Thanks