class Example extends ScreenBase {
@observable searchLicensePlate: string;
constructor() {
super();
attachManualValidator(this);
}
@bound
onSearch() {
if (!this.searchLicensePlate) {
addError(this, "searchLicensePlate", "Error message");
}
if (validate(this)) {
// do something
}
}
}
Steps to error
Validate valid data with manualValidator
Change input data to invalid and revalidate data.
Now error occurred. Inside ManualValidator everything is okay but view does not react on changes at errorsObject and error message is not shown till input value is changed.
Frui.ts "0.15.0"
Code sample
View example
VM example
Steps to error
Now error occurred. Inside ManualValidator everything is okay but view does not react on changes at
errorsObject
and error message is not shown till input value is changed.