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.

giphy: Set focus to the query input after clearing it.

Daniil Fadeev74c8852233ca
diff --git a/web/src/giphy.js b/web/src/giphy.js
index 7df11586dc4..31451a479af 100644
--- a/web/src/giphy.js
+++ b/web/src/giphy.js
@@ -214,7 +214,7 @@ export function initialize() {
$("body").on("click", "#giphy_search_clear", async (e) => {
e.stopPropagation();
- $("#giphy-search-query").val("");
+ $("#giphy-search-query").val("").trigger("focus");
await update_grid_with_search_term();
});