Hi folks, I’m experimenting with an editor extension and I’m trying to access the validation errors of a field with onSchemaErrorsChanged
in componentDidMount
but I’m getting onSchemaErrorsChanged is not a function
errors.
Here’s the componentDidMount
:
componentDidMount() {
this.props.sdk.entry.fields.title.onSchemaErrorsChanged(function(errors) { console.log('Ping'); }); }
Would appreciate a bit of help regarding how to make this work!