From 01eb093f806cb0be656fc0d12ecea8a5f5094cb3 Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Tue, 30 Nov 2021 01:23:54 +0530 Subject: [PATCH] Block Enter key bubbling to the composer, on selecting LHN row via Enter --- src/pages/home/sidebar/OptionRow.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/home/sidebar/OptionRow.js b/src/pages/home/sidebar/OptionRow.js index 0041cf6a019b..2c58924d8732 100644 --- a/src/pages/home/sidebar/OptionRow.js +++ b/src/pages/home/sidebar/OptionRow.js @@ -128,11 +128,15 @@ const OptionRow = (props) => { }; }, ); + return ( {hovered => ( props.onSelectRow(props.option)} + onPress={(e) => { + e.preventDefault(); + props.onSelectRow(props.option); + }} disabled={props.disableRowInteractivity} activeOpacity={0.8} style={[