InputMask removes content on blur

UI Components for JSF
Post Reply
neik123
Posts: 10
Joined: 21 Jun 2012, 15:51

24 Apr 2016, 22:00

Hi,

the InputMask component removes content on blur if it doesn't match the mask.
Is there a way to keep the "invalid" input ?

Thanks
Running on PrimFaces 3.5, Mojarra 2.1.7 and Tomcat7

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

25 Apr 2016, 07:34

You can use autoclear option as false which is been added in 5.3.1 version.https://github.com/primefaces/primefaces/issues/833
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

neik123
Posts: 10
Joined: 21 Jun 2012, 15:51

27 Apr 2016, 11:49

Thanks for a reply.
Any chance I can do that in 3.5 ?
Migration would be a huge pain...
Running on PrimFaces 3.5, Mojarra 2.1.7 and Tomcat7

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

27 Apr 2016, 15:58

You can't port in older versions.As a workaround you can extend inputmask js file by changing default value to false.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 59 guests