KevinSheedy / jquery.alphanum

Alphanumeric Plugin for jQuery
Other
141 stars 66 forks source link

Change event is not working after 'paste' event in Chrome and IE browsers #33

Open cis-venkat opened 10 years ago

cis-venkat commented 10 years ago

I am using latest version of jquery.alphanum and found one odd issue. i.e. when you paste certain number more than maxDecimalPlaces then after paste the other event i.e. change event is not firing for those elements. Although the change event is working fine without paste. I suspect this issue is occurred with the paste event used in jquery.alphanum library.

    $('#accountBalance').numeric({
      maxPreDecimalPlaces : 10,
      maxDecimalPlaces    : 2
    });
    $("#accountBalance").on("change", function (e) {
      // This works in `FireFox` but NOT WORKING in `Chrome` and `IE` 
      alert("ok");
    });

Please fix this issue ASAP.