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: Get rid of `#giphy_search_clear` handler.

apoorvapendse558eaac04b5b
diff --git a/web/src/giphy.ts b/web/src/giphy.ts
index 6a975b14c6d..b864892e483 100644
--- a/web/src/giphy.ts
+++ b/web/src/giphy.ts
@@ -196,12 +196,6 @@ function toggle_giphy_popover(target: HTMLElement): void {
$popper.on("keydown", ".giphy-gif", ui_util.convert_enter_to_click);
$popper.on("keydown", ".compose-gif-icon-giphy", ui_util.convert_enter_to_click);
- $popper.on("click", "#giphy_search_clear", (e) => {
- e.stopPropagation();
- $("#gif-search-query").val("");
- void update_grid_with_search_term();
- });
-
void (async () => {
gifs_grid = await renderGIPHYGrid(the($popper.find(".giphy-content")));