Skip to content

Commit a27606f

Browse files
committed
Merge pull request #15 from yborunov/component-update-fix
[fixed] shouldComponentUpdate issue
2 parents e5ddf8c + 229b5a4 commit a27606f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/components/TinyMCE.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import { findDOMNode } from 'react-dom';
33
import isEqual from 'lodash/lang/isEqual';
4+
import clone from 'lodash/lang/clone';
45
import uuid from '../helpers/uuid';
56
import ucFirst from '../helpers/ucFirst';
67

@@ -48,7 +49,8 @@ const TinyMCE = React.createClass({
4849
},
4950

5051
componentDidMount() {
51-
this._init(this.props.config);
52+
const config = clone(this.props.config);
53+
this._init(config);
5254
},
5355

5456
componentWillReceiveProps(nextProps) {

0 commit comments

Comments
 (0)