]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#2054128: OPAC autosuggest now gets closed when input loses focus
authorGalen Charlton <gmc@equinoxOLI.org>
Sat, 17 Feb 2024 16:13:11 +0000 (11:13 -0500)
committerJane Sandberg <js7389@princeton.edu>
Mon, 19 Feb 2024 20:25:45 +0000 (12:25 -0800)
commitdcca92e1d995a1343023c442661c73d024caadf9
tree8f7ab0d23c58fd425a04c66cc2400065a4fadef4
parent22b713e0f60426c2007bce7fc6f2a4dd07d62c67
LP#2054128: OPAC autosuggest now gets closed when input loses focus

This patch ensure that the autosuggest list goes away when
the basic search box in the OPAC loses focus. Otherwise, it
can obscure controls that the user is trying to interact with.

To test
-------
[1] Enter a search term in the OPAC and observe that the
    dropdown of suggestions appears.
[2] Tab or click away from the input. Note that the dropdown
    remains open.
[3] Apply the patch and repeat steps 2 and 3. This time, the
    dropdown should get closed.

Release-note: Close autosuggest dropdown in the public catalog when it loses focus.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/web/js/ui/default/opac/autosuggest.module.js
Open-ILS/web/opac/tests/autosuggest.spec.module.js