Skip to content

Commit

Permalink
Merge remote-tracking branch 'durindo/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
securingsincity committed Oct 7, 2016
2 parents 7b28614 + b321fba commit c6d9e46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-ace",
"version": "3.6.0",
"version": "3.6.1",
"description": "A react component for Ace Editor",
"main": "lib/ace.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/ace.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,12 @@ export default class ReactAce extends Component {
if (nextProps.focus && !oldProps.focus) {
this.editor.focus();
}
if(nextProps.height !== this.props.height){
this.editor.resize();
}
}


componentWillUnmount() {
this.editor.destroy();
this.editor = null;
Expand Down

0 comments on commit c6d9e46

Please sign in to comment.