Skip to content

Commit

Permalink
Merge pull request #262 from FormidableLabs/jp-fix-custom-onchange
Browse files Browse the repository at this point in the history
remove onChange prop again before spreading to react-simple-code-editor
  • Loading branch information
jpdriver committed Jun 27, 2021
2 parents edba11c + cfe62b1 commit 5478430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Editor/index.js
Expand Up @@ -58,7 +58,8 @@ class CodeEditor extends Component {
);

render() {
const { style, theme, ...rest } = this.props;
// eslint-disable-next-line no-unused-vars
const { style, theme, onChange, ...rest } = this.props;
const { code } = this.state;

const baseTheme =
Expand Down

0 comments on commit 5478430

Please sign in to comment.