We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5b4146 commit 9887e46Copy full SHA for 9887e46
src/components/QuestionTypes/NumberType.vue
@@ -21,11 +21,11 @@
21
22
methods: {
23
validate() {
24
- if (!isNaN(this.question.min) && this.dataValue < this.question.min) {
+ if (this.question.min !== null && !isNaN(this.question.min) && +this.dataValue < +this.question.min) {
25
return false
26
}
27
28
- if (!isNaN(this.question.max) && this.dataValue > this.question.max) {
+ if (this.question.max !== null && !isNaN(this.question.max) && +this.dataValue > +this.question.max) {
29
30
31
0 commit comments