Numeric - TypeError: initialValue.split is not a function
See original GitHub issueSee my code
This code worked in previous version. but not now (3.3.4)
Inputmask.format(62.91, { alias: 'numeric' });
The output
Uncaught TypeError: initialValue.split is not a function at Object.onBeforeMask (inputmask:2617) at Inputmask.maskScope (inputmask:1136) at Inputmask.format (inputmask:1350) at Function.Inputmask.format (inputmask:1508) at <anonymous>:1:11
What can i do ?
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
TypeError: split is not a function in JavaScript | bobbyhadz
The "split is not a function" error occurs when we call the split() method on a value that is not of type string....
Read more >Javascript Uncaught TypeError : .split is not a function
Uncaught TypeError (intermediate value).split is not a function. Anyone knows on how to solve this problem? I've tried so many ways.
Read more >parseFloat() - JavaScript - MDN Web Docs
The parseFloat function converts its first argument to a string, parses that string as a decimal number literal, then returns a number or...
Read more >TypeError: split is not a function in JavaScript - Java2Blog
TypeError : .split is not a function occurs when we call split() function on object which is not an string. split() function can...
Read more >Function object, NFE - The Modern JavaScript Tutorial
If the function does not provide one, then in an assignment it is figured ... that returns the number of function parameters, for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@penihel ,
Probably in the numeric extension. Onbeforemask => initialValue.split replace with initialValue.toString().split
I have a similar issue with a mask of “9{+}[.9{+}]” on Chrome Version 73.0.3683.103 or Firefox 66.0.2 (though it seems to be fine on Edge for whatever reason).
(From Chrome)