Skip to content

Commit

Permalink
Merge pull request #6515 from parasharrajat/event-bubble
Browse files Browse the repository at this point in the history
Block Enter key bubbling to the composer, on selecting LHN row via `Enter`
  • Loading branch information
mountiny authored Nov 29, 2021
2 parents d53a74d + 01eb093 commit d471d34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/home/sidebar/OptionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,15 @@ const OptionRow = (props) => {
};
},
);

return (
<Hoverable>
{hovered => (
<TouchableOpacity
onPress={() => props.onSelectRow(props.option)}
onPress={(e) => {
e.preventDefault();
props.onSelectRow(props.option);
}}
disabled={props.disableRowInteractivity}
activeOpacity={0.8}
style={[
Expand Down

0 comments on commit d471d34

Please sign in to comment.