[Koha-bugs] [Bug 31646] Focus input by default when clicking on a dropdown field in the cataloguing editor

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 30 19:56:00 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31646

--- Comment #4 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 141175
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=141175&action=edit
Bug 31646: Add Select2 focus to text search field

To test:
1. Edit a biblio record
2. Go to tab 9 to find the item type MARC field 942$c
3. Click on the field to select an item type
4. Notice you have to click again on the search field to begin typing to search
for your item type
5. Apply patch/clear browser cache
6. Try steps 2-3 again, the focus should now be on the search text field
7. Try another select2 dropdown on the same page like the  942$n ( Suppress in
OPAC ), it should also default to the text search field.
8. Try other places in Koha that feature this kind of select2, like when
placing hold.

Note: Using $(document).on here instead of $(".select2").on becuase there are
several instances where there are more than 1 select2 dropdown on a single
page. This allows for the text search field to default each time you click on a
different dropdown.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list