File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/components/QuestionTypes Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4848
4949 import BaseType from ' ./BaseType.vue'
5050 import { QuestionType } from ' ../../models/QuestionModel'
51- import LanguageModel from ' ../../models/LanguageModel'
5251 import TheMask from ' vue-the-mask/src/component'
5352
5453 export default {
6766
6867 methods: {
6968 validate () {
70- if (this .question .mask && this .hasValue && this .dataValue .length !== this .question .mask .length ) {
71- return false
69+ if (this .question .mask && this .hasValue ) {
70+ if (Array .isArray (this .question .mask )) {
71+ return this .question .mask .some (mask => mask .length === this .dataValue .length )
72+ }
73+
74+ return this .dataValue .length !== this .question .mask .length
7275 }
7376
7477 return ! this .question .required || this .hasValue
You can’t perform that action at this time.
0 commit comments