Bug:mask with array
matheusf31 opened this issue · 1 comments
matheusf31 commented
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 ###.###.###/#####).
Desktop (please complete the following information):
- Device: PC
- OS: Windows 10
- Browser: chrome
- Version: 88.0.4324.150 64 bits