surveyjs / custom-widgets

The collection of custom widgets for SurveyJS: Survey Library and Survey Creator :package:
https://surveyjs.io
MIT License
79 stars 78 forks source link

InputMask - Optional mask not working #242

Closed net-sanchez closed 2 years ago

net-sanchez commented 3 years ago

type = "text" inputMask = "phone" inputFormat = "(99) 9999[9]-9999"

This set up is only with 9 numbers phone but not with 8. On visual it seems to work but as soon as you focus out the value is cleared.

I tried to clearImcomplete: false but it didnt work

I Also noted it is only happening in angular. Jquery seems to work fine

stsiushkevich commented 3 years ago

I have a same issue.

https://codesandbox.io/s/51sik?file=/src/SurveyComponent.jsx