]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#2053035: return ability to submit OPAC basic search via enter
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 13 Feb 2024 16:52:50 +0000 (11:52 -0500)
committerJane Sandberg <js7389@princeton.edu>
Mon, 19 Feb 2024 20:18:25 +0000 (12:18 -0800)
commit22b713e0f60426c2007bce7fc6f2a4dd07d62c67
tree2a9bba47b489a6d7f2004ff401eaa8ffa0456285
parent44f8b609fa0a89e97458c1fb2d4aeeebaa9f0169
LP#2053035: return ability to submit OPAC basic search via enter

This patch fixes an issue with the current autosuggest implementation
that prevented submitting the form while focus is on the main
text input.

To test
-------
[1] Apply patch. Do the following tests using both keyboard
    and mouse navigation.
[2] Verify that submitting a search without selecting any
    of the suggested terms works.
[3] Verify that submitting a search after selecting one
    of the suggestions works.
[4] Verify that submitting the search after using the keyboard
    to navigate the selections, but ultimately not choosing
    any of them, works.
[5] Run automated tests, e.g., by running

    npx jasmine Open-ILS/web/opac/tests/autosuggest.spec.module.js

Release-note: Restore ability to submit basic OPAC search by hitting enter in search input.

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