Fix iOS post context menu (#1165)

This commit is contained in:
enahum 2017-11-16 20:33:18 -03:00 committed by GitHub
parent a65811e088
commit e7f8388fe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,12 @@ export default class OptionsContext extends PureComponent {
};
}
componentWillReceiveProps(nextProps) {
if (this.props.actions !== nextProps.actions) {
this.setState({actions: nextProps.actions});
}
}
handleHideUnderlay = () => {
if (!this.isShowing) {
this.props.toggleSelected(false, false);