Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

emoji_picker: Fix keys not working if search yields no results.

Vinit Singhbf31d92fa748
diff --git a/static/js/emoji_picker.js b/static/js/emoji_picker.js
index 5024fd7ce66..f68490f6f79 100644
--- a/static/js/emoji_picker.js
+++ b/static/js/emoji_picker.js
@@ -396,7 +396,8 @@ exports.navigate = function (event_name, e) {
// If search is active and results are empty then return immediately.
if (search_is_active === true && search_results.length === 0) {
- return true;
+ // We don't want to prevent default for keys like backspace and space.
+ return false;
}
if (event_name === 'enter') {