File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 137137 return true
138138 }
139139
140- if (this .question .mask && this .dataValue .length !== this .question .mask .length ) {
141- return false
142- }
143-
144140 if (this .validate ()) {
145141 return true
146142 }
Original file line number Diff line number Diff line change 5656 inputType: ' text' ,
5757 canReceiveFocus: true
5858 }
59+ },
60+ methods: {
61+ validate () {
62+ if (this .question .mask && this .dataValue .length !== this .question .mask .length ) {
63+ return false
64+ }
65+
66+ return ! this .question .required || this .hasValue
67+ }
5968 }
6069 }
6170 </script >
Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ export default class QuestionModel {
9696 this . placeholder = this . mask
9797 }
9898 }
99+
100+ if ( this . type === QuestionType . Url ) {
101+ this . mask = null
102+ }
103+
99104 if ( this . multiple ) {
100105 this . answer = [ ]
101106 }
You can’t perform that action at this time.
0 commit comments