From 87af4e586a92726203fb391f4c88fbb8f6944743 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:07:06 +0200 Subject: [PATCH] search: don't hide search drop-down on focus change Focus/blur events are handled diffrently in Safari compared to other browsers. For a better experience, let's not attempt to close the search results drop-down if focus exits the search bar area. We still have a click.outside and a keyup listener for "escape" on window to handle the close, and a "close" button in the input bar (which is now also focusable). Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- layouts/partials/search-bar.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/layouts/partials/search-bar.html b/layouts/partials/search-bar.html index b4295f38b3..095e04d4b4 100644 --- a/layouts/partials/search-bar.html +++ b/layouts/partials/search-bar.html @@ -3,12 +3,11 @@ {{ partialCached "icon" "search" "search" }} -