Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug:mask with array #166

Closed
matheusf31 opened this issue Feb 17, 2021 · 1 comment
Closed

Bug:mask with array #166

matheusf31 opened this issue Feb 17, 2021 · 1 comment
Assignees

Comments

@matheusf31
Copy link

matheusf31 commented Feb 17, 2021

Describe the bug
If I use the mask in new QuestionModel with an array like this: mask: ['###.###.###-##', '###.###.###/#####'] the input don't work appropriately. They recognize just 2 numbers and don't recognize the format of the mask that was expected (###.###.###-## or ###.###.###/#####).

To Reproduce
Clone and run the vue-flow-form and in file examples/questionnaire/Example.vue change the fisrt question to this:

new QuestionModel({
  id: 'first_name',
  tagline: 'Hi! Welcome to our demo survey 😊',
  title: 'CPF?',
  type: QuestionType.Phone,
  required: true,
  mask: ['###.###.###-##', '###.###.###/#####'],
}),

Expected behavior
I expect to be able to press ok if the format is correct in the both cases of the mask (###.###.###-## or ###.###.###/#####).

Screenshots
image
image
image
image

Desktop (please complete the following information):

  • Device: PC
  • OS: Windows 10
  • Browser: chrome
  • Version: 88.0.4324.150 64 bits
@spinn
Copy link
Contributor

spinn commented Feb 26, 2021

Thank you for the extensive bug report and the example you provided. This issue has been fixed in commit 3fedfcd, but this change now unfortunately revealed a bug in vue-the-mask:

vuejs-tips/vue-the-mask#64

We'll either have to find a suitable replacement for vue-the-mask, or fork it to fix the issue.

@spinn spinn closed this as completed Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants