RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.4k stars 2.16k forks source link

Error using this plugin with jquery validator v1.14 in ie #1150

Open slbtuga opened 8 years ago

slbtuga commented 8 years ago

Hi.

First of all, congratulations for this excelent plugin.

Using inputmask with jquery validator, when I clear the content of field ( text box) with backspace, it's give an error "Error: Unable to get property 'length' of undefined or null reference".

This error only happens in ie ( in my case is ie 11).

I figer out that in ie, the $.val() return null instead chrome return "" (empty string).

Here is an example that gives this error http://jsfiddle.net/buyoxozo/1/

Do you know how can I resolve this?

Thanks Regards.

RobinHerbots commented 8 years ago

I will fix this next monday. Best regards Robin

RobinHerbots commented 8 years ago

@slbtuga ,

Can you retry with the latest version github.

slbtuga commented 8 years ago

Sorry but, have you change something?

What do you mean exactly with "latest version github"?

RobinHerbots commented 8 years ago

I could not reproduce the problem. Maybe you did not used the latest version.

slbtuga commented 8 years ago

In my first post you have a link http://jsfiddle.net/buyoxozo/1/ with a case that give this situation. You must load in ie.

RobinHerbots commented 8 years ago

I did load it in IE11 & IE10, ... entered some date pressed baxckspace multiple times, cleared with x retyped, ...

Op di 5 jan. 2016 om 01:09 schreef slbtuga notifications@github.com:

In my first post you have a link http://jsfiddle.net/buyoxozo/1/ with a case that give this situation. You must load in ie.

— Reply to this email directly or view it on GitHub https://github.com/RobinHerbots/jquery.inputmask/issues/1150#issuecomment-168850523 .

slbtuga commented 8 years ago

Try select all content of textbox and than press backspace (My ideia is take "null" instead "0.00"). If you click on subsmit button now, it should show "null" below text box.