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

These changes improve keyboard navigation in the Giphy popover.

Fixes: #26096.
This commit is contained in:
Daniil Fadeev 2023-06-23 14:24:07 +03:00 committed by Tim Abbott
parent 21aeb4a040
commit 74c8852233
1 changed files with 1 additions and 1 deletions

View File

@ -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();
});