Skip to content

When no onChange handler, component throws error #68

@miuirussia

Description

@miuirussia
TypeError: _this.props.onChange is not a function. (In '_this.props.onChange(_this.editor, data, _this.editor.getValue())', '_this.props.onChange' is undefined)

Probably due to lack of verification:

if (this.props.onBeforeChange) {
if (this.continueChange) {
this.props.onChange(this.editor, data, this.editor.getValue())
}
} else {
this.props.onChange(this.editor, data, this.editor.getValue())
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions