Techn1c4l
Techn1c4l
I've tested on a simple HTML page, the events are firing as intended. ``` function log(event) { console.log(Math.random()); } function log2(event) { console.log('changed'); } window.onload = function () { const...
Do you really need that high number precision? JavaScript uses double-precision floating point which follows IEEE 754 with limitation of 64-bit precision (16 digits), so you can't expect it to...
You can achieve this by using the `regex` option like this: ``` $(function() { $('#myInput').inputmask('', { prefix: "$ ", rightAlign: false, clearMaskOnLostFocus: false, placeholder: "", regex: '[0-9]+((\\.)?[0-9]*)' }); }); ```
> Not quite. This still replaces the deleted characters with 0, not with my placeholder, which is a blank space. Notice my Inputmask `alias` is empty, not set to `currency`...
> I appreciate your advice. Basically I need the mask to show the $ prefix, show the decimal point, but also replace deleted chars with a blank space. Here you...
> Thanks, this is very close to what I need, except that I need the decimal place itself to be non-optional. I will mess around with it from here. To...
Can you provide some examples of your Inputmask configuration?
Ah, I see now. Anyway, you should set values of your inputs without mask characters, i.e. not `value="(12) 3456-7890"` but `value="1234567890"`.
> But the one with a single mask works just fine I'm not completely sure what's the intended behavior. Maybe it should handle values in the masked format. But usually,...
Can confirm. The issue seems to arise only when inputting something that starts with `3`, i.e. any number between `-29` and `-40`.