File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/js/components/SearchBar Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1515 let dropdownSelected = $state (false );
1616
1717 // updates UI when 'Collection' or 'Website' is selected in search options
18+ // sets a boolean for whether or not the dropdown for collection/website was selected
1819 let _updateSelect = function (event ) {
1920 index = event .target .value ;
2021 _root .dataset .index = event .target .value ;
21- if (index == ' library' ) {
22- dropdownSelected = true ;
23- }
22+
23+ dropdownSelected = true ;
2424 };
2525
2626 function isSiteBabel () {
123123 if (location .pathname .match (' /cgi/ls' ) && ! searchParams .has (' c' )) {
124124 _inputValue = searchParams .get (' q1' );
125125 isFullView = ! (searchParams .get (' lmt' ) == ' all' );
126+ } else if (dropdownSelected) {
127+ _selectValue = index;
126128 }
127129 } else if (isSiteCatalog ()) {
128130 _searchtypeValue = searchParams .get (' searchtype' ) || ' all' ;
You can’t perform that action at this time.
0 commit comments