diff --git a/ComposeWindow.js b/ComposeWindow.js index 44cee41..b1576f2 100644 --- a/ComposeWindow.js +++ b/ComposeWindow.js @@ -27,8 +27,8 @@ var ComposeWindow = React.createClass({
From
diff --git a/DropDownBase.js b/DropDownBase.js index f5a3669..b8ce57c 100644 --- a/DropDownBase.js +++ b/DropDownBase.js @@ -63,6 +63,10 @@ var DropDownBase = module.exports = { { ev.stopPropagation(); }, + isVisible: function() + { + return this.state.visible; + }, hide: function() { this.setState({ visible: false }); diff --git a/DropDownButton.js b/DropDownButton.js index 48f1e96..02b102e 100644 --- a/DropDownButton.js +++ b/DropDownButton.js @@ -2,10 +2,19 @@ const React = require('react'); const DropDownBase = require('./DropDownBase.js'); var DropDownButton = module.exports = React.createClass({ + componentWillReceiveProps: function(nextProps) + { + if (!nextProps.hidden && this.props.hidden && + DropDownBase.instances[this.props.dropdownId].isVisible()) + { + DropDownBase.instances[this.props.dropdownId].showAt(this.refs.btn, this.unpress); + } + }, render: function() { return {this.props.icon ? : null} {this.state.checked && this.props.checkedText || this.props.text || null} diff --git a/MessageList.js b/MessageList.js index a687d61..f383ae7 100644 --- a/MessageList.js +++ b/MessageList.js @@ -157,7 +157,7 @@ var MessageList = React.createClass({ - Label - +