From 2d47e727375cb0bceee14d49a03cdebe0e31a565 Mon Sep 17 00:00:00 2001 From: dreaming-augustin Date: Tue, 24 Dec 2024 10:33:58 +0800 Subject: [PATCH] [Search] trigger 'focusin', 'focusout'. It allows websites to implement a solution for this: [Search] Bring active result into view #3143 https://github.com/fomantic/Fomantic-UI/issues/3143 --- src/definitions/modules/search.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index 4853beb43d..7acd01414a 100644 --- a/src/definitions/modules/search.js +++ b/src/definitions/modules/search.js @@ -329,8 +329,10 @@ ; $result .removeClass(className.active) + .trigger('focusout') .eq(newIndex) .addClass(className.active) + .trigger('focusin') .closest($category) .addClass(className.active) ; @@ -346,8 +348,10 @@ ; $result .removeClass(className.active) + .trigger('focusout') .eq(newIndex) .addClass(className.active) + .trigger('focusin') .closest($category) .addClass(className.active) ;