remove create_room for now. lots of stupid bugfixes across the board.

This commit is contained in:
Matthew Hodgson 2016-01-17 03:59:31 +00:00
parent 82a159d651
commit 5b5bd9aef1
6 changed files with 64 additions and 22 deletions

View file

@ -61,7 +61,12 @@ module.exports = React.createClass({
},
componentWillReceiveProps: function(nextProps) {
this.value = nextProps.initialValue;
if (nextProps.initialValue !== this.props.initialValue) {
this.value = nextProps.initialValue;
if (this.refs.editable_div) {
this.showPlaceholder(!this.value);
}
}
},
componentDidMount: function() {
@ -71,11 +76,7 @@ module.exports = React.createClass({
}
},
componentDidUpdate: function(newProps) {
this.value = this.props.initialValue;
if (this.refs.editable_div) {
this.showPlaceholder(!this.value);
}
componentDidUpdate: function() {
},
showPlaceholder: function(show) {