Skip to content

Commit

Permalink
componentWillUnmount: destroy editor
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvgalbraith committed Mar 8, 2016
1 parent 4182b83 commit 71d3526
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ace.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export default class ReactAce extends Component {
}

componentWillUnmount() {
this.editor.destroy();
this.editor = null;
}

Expand Down

0 comments on commit 71d3526

Please sign in to comment.