Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
search: Fix bug where exit button jumps when clicked.
evykassirer2e3f11134e31
diff --git a/web/src/search.ts b/web/src/search.tsindex 6f82e9b6229..0bf88ba4ae4 100644--- a/web/src/search.ts+++ b/web/src/search.ts@@ -96,11 +96,11 @@ export function initialize({on_narrow_search}: {on_narrow_search: OnNarrowSearchconst $searchbox_form = $("#searchbox_form");const $pill_container = $("#searchbox-input-container.pill-container");- $(".search-input-and-pills").on("focusin", () => {+ $("#searchbox_form").on("focusin", () => {$("#searchbox-input-container").toggleClass("focused", true);});- $(".search-input-and-pills").on("focusout", () => {+ $("#searchbox_form").on("focusout", () => {$("#searchbox-input-container").toggleClass("focused", false);});diff --git a/web/styles/search.css b/web/styles/search.cssindex be6804da5bd..64a6c67c444 100644--- a/web/styles/search.css+++ b/web/styles/search.css@@ -43,11 +43,6 @@/* Leave room for the focus outline. */margin-right: 1px;- &:focus {- /* Reduce height to leave 1px on top and bottom for the outline. */- height: calc(100% - 2px);- }-&:not(:focus-visible) {outline: none;}