mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-07 20:40:26 +08:00
Merge pull request #8167 from andrej-scinote/aj_SCI_11442
Fix datetime validation for forms [SCI-11442]
This commit is contained in:
commit
350f694b56
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ export default {
|
||||||
},
|
},
|
||||||
validValue() {
|
validValue() {
|
||||||
if (this.range) {
|
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;
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue