Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 9742962

Browse files
author
Luke Barnard
committed
preventDefault when moving autocomplete selection with vertical arrow
Otherwise the composer selection updates, in turn hiding the autocomplete box - fixes element-hq/element-web#4790
1 parent 02217c8 commit 9742962

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/views/rooms/MessageComposerInput.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,7 @@ export default class MessageComposerInput extends React.Component {
890890
}
891891
} else {
892892
this.moveAutocompleteSelection(up);
893+
e.preventDefault();
893894
}
894895
};
895896

0 commit comments

Comments
 (0)