docs: improve widget custom validation sample (#1911)
This commit is contained in:
parent
da91038067
commit
5e2ce34c99
@ -154,7 +154,7 @@ Existing error:
|
||||
```javascript
|
||||
isValid = () => {
|
||||
// Do internal validation
|
||||
return { error: 'Your error message.' };
|
||||
return { error: { message: 'Your error message.' } };
|
||||
};
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user