Merge pull request #8167 from andrej-scinote/aj_SCI_11442

Fix datetime validation for forms [SCI-11442]
This commit is contained in:
andrej-scinote 2025-01-20 09:41:26 +01:00 committed by GitHub
commit 350f694b56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,7 +73,7 @@ export default {
},
validValue() {
if (this.range) {
return !this.fromValue || !this.toValue || this.fromValue <= this.toValue;
return Boolean(this.fromValue) === Boolean(this.toValue) && (!this.fromValue || !this.toValue || this.fromValue <= this.toValue);
}
return this.value;
}