Skip to content

Commit f9d7b10

Browse files
committed
Remove mask for url field
1 parent f53bd93 commit f9d7b10

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/components/QuestionTypes/TextType.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@
5858
}
5959
},
6060
methods: {
61-
validate(){
61+
validate() {
6262
if (this.question.mask && this.dataValue.length !== this.question.mask.length) {
6363
return false
6464
}
65+
6566
return !this.question.required || this.hasValue
6667
}
6768
}

src/components/QuestionTypes/UrlType.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828
},
2929
3030
validate() {
31-
if (this.question.mask) {
32-
this.question.mask = ''
33-
}
34-
3531
if (this.hasValue) {
3632
try {
3733
var url = new URL(this.fixAnswer(this.dataValue))

src/models/QuestionModel.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)