From 24185dc47d1a6883a5bfe9c1c7f60581db36d955 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Sat, 15 Sep 2018 19:27:49 -0300 Subject: [PATCH] Fix post background color from getting stuck (#2126) --- app/components/options_context/options_context.ios.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/components/options_context/options_context.ios.js b/app/components/options_context/options_context.ios.js index 615373967..12713d6a6 100644 --- a/app/components/options_context/options_context.ios.js +++ b/app/components/options_context/options_context.ios.js @@ -50,10 +50,14 @@ export default class OptionsContext extends PureComponent { } }; + handleShow = () => { + this.isShowing = true; + this.props.toggleSelected(true); + } + handleShowUnderlay = () => { this.beforeShow(); this.props.toggleSelected(true); - this.isShowing = this.state.actions.length > 0; }; hide = () => { @@ -93,6 +97,7 @@ export default class OptionsContext extends PureComponent { arrowDirection='down' longPress={true} onHide={this.handleHide} + onShow={this.handleShow} onPress={this.handlePress} underlayColor='transparent' >