fix: allow widgets to control value to be validated (#3448)

This commit is contained in:
Erez Rokah
2020-03-23 16:33:29 +02:00
committed by GitHub
parent 228c6b41e2
commit ae1917c818
2 changed files with 10 additions and 1 deletions

View File

@ -97,7 +97,7 @@ export default class Widget extends Component {
};
validate = (skipWrapped = false) => {
let value = this.props.value;
let value = this.innerWrappedControl?.getValidateValue?.() || this.props.value;
// Convert list input widget value to string for validation test
List.isList(value) && (value = value.join(','));