I am having trouble figuring out how to validate for values greater than 0. When using minValue(0)
, it also accepts the value 0. On the other hand, if I use minValue(1)
, it does not accept any decimal between 0 and 1.
Furthermore, I am facing an issue with using variables from data/computed for the maxValue validation. It works when I use maxValue(200)
, but I require it to be dynamic.
validations: {
form: {
amount: {
maxValue: maxValue(this.maxAmount), // Uncaught TypeError: Cannot read property 'maxAmount' of undefined
},
},
},
validations: {
form: {
amount: {
maxValue: maxValue(maxAmount), // Uncaught ReferenceError: maxAmount is not defined
},
},
},