Skip to content

Commit

Permalink
[Search] trigger 'focusin', 'focusout'.
Browse files Browse the repository at this point in the history
It allows websites to implement a solution for this:

[Search] Bring active result into view #3143
#3143
  • Loading branch information
dreaming-augustin committed Dec 24, 2024
1 parent 22d2d0d commit 2d47e72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/definitions/modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,10 @@
;
$result
.removeClass(className.active)
.trigger('focusout')
.eq(newIndex)
.addClass(className.active)
.trigger('focusin')
.closest($category)
.addClass(className.active)
;
Expand All @@ -346,8 +348,10 @@
;
$result
.removeClass(className.active)
.trigger('focusout')
.eq(newIndex)
.addClass(className.active)
.trigger('focusin')
.closest($category)
.addClass(className.active)
;
Expand Down

0 comments on commit 2d47e72

Please sign in to comment.