mirror of
https://github.com/frappe/books.git
synced 2025-02-02 12:08:27 +00:00
invalidate input if validate returns false
This commit is contained in:
parent
eb97db9deb
commit
7eeb3ca137
@ -169,6 +169,7 @@ class BaseControl {
|
|||||||
async handleChange(event) {
|
async handleChange(event) {
|
||||||
let value = await this.parse(this.getInputValue());
|
let value = await this.parse(this.getInputValue());
|
||||||
value = await this.validate(value);
|
value = await this.validate(value);
|
||||||
|
this.input.setCustomValidity(value === false ? 'error' : '');
|
||||||
await this.updateDocValue(value);
|
await this.updateDocValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user