mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 03:46:39 +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() {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue