igorescobar / jQuery-Mask-Plugin

A jQuery Plugin to make masks on form fields and HTML elements.
http://igorescobar.github.io/jQuery-Mask-Plugin/
Other
4.77k stars 1.42k forks source link

money mask on number input #749

Open ivenspontes opened 4 years ago

ivenspontes commented 4 years ago

Browser (and version)?

Chrome 81.0.4044.138 64 bits

Functional jsfiddle exemplifying your problem:

http://jsfiddle.net/s3ykha21/

Describe de problem depth:

When I apply the mask to an input type number, it doesn't work

error on console:

The specified value "1,11" cannot be parsed, or is out of range. 
  | (anonymous) | @ | jquery.min.js:2
-- | -- | -- | --
  | each | @ | jquery.min.js:2
  | each | @ | jquery.min.js:2
  | val | @ | jquery.min.js:2
  | val | @ | jquery.mask.min.js:9
  | behaviour | @ | jquery.mask.min.js:11
  | dispatch | @ | jquery.min.js:2
  | v.handle | @ | jquery.min.js:2
gabrielpcruz commented 3 years ago

Try change te type of inputs for "text" instead "number".