- Dropdown - Using
search selection
withselectOnKeydown
will now highlight the partial search matching the currently keyboard selected value - Dropdown - Using
search selection with
selectOnKeydown` and text content that includes html, will not apply html content (like images) to the text until dropdown blur, making sure that content can align correctly with the partial search content of the search input (which cannot include HTML)
- Dropdown - Fixed "pointer" cursor appearing in hitbox above search input in
search selection
, now all input area will appear with "text" input cursor
- Dropdown - Dropdown will now automatically focus on
search
inside of a dropdown menu after it is opened. - Dropdown - Multiple select dropdown now sizes current dropdown input based on rendered width of a hidden element, not using an estimate based on character count. This means search will never break to a second line earlier than would normally fit in current line.
- Dropdown - Added
fullSearchSearch: 'exact'
setting, which requires exact matches for dropdown values #3085 #3994 Thanks @ShawnCholeva - Dropdown - Added new setting for search selection
hideAdditions
this will remove showing user additions inside the menu, making for a more intuitive adding process. Dropdowns now have a new stateempty
which will format an active dropdown with empty results. #3791 - Search - Added a new option
selectFirstResult
, which defaults tofalse
. Will automatically highlight first result on search - Search - Search now includes a
showNoResults
setting for determining whether no results messages should be shown - Dropdown -
search selection
would not let you move back in an entered search string with left arrow #3596 Thanks @Sanjo - Form Validation / Dropdown - Using "enter" key in a
search dropdown
could cause a form to be submitted #3676 - Search - Fixed bug where a previously XHR query could cause the next one to fail depending on the latency of the request #2779
- Search - Fixed an issue where
onResult
returningfalse
would not prevent the search menu from hiding. Clicking on an empty results message will also no longer close the search results. #3856 #3870 - Dropdown - Dropdown would open when an label delete x was clicked when not using
search selection
#3789 - Dropdown - Search selection would lose search input focus when clicking on a choice #3790
- Search - Added
refresh
behavior for search to refresh selector cache. Cache will automatically refresh after API results received - Search - Fixed issue where
href
was not pulling correctly on search click when theresult
was ana
itself. #3409
- Search - Search now correctly hides menu when an error message inside results is clicked. #3039
- Checkbox/Dropdown/Search - Fixed issue where dropdown/checkbox
change
events were not bubbling. (Dispatched events were swapped to use nativedocument.creatEvent
in2.1.5
unfortunately the flag to bubble events was mistakenly off.)
- Checkbox/Dropdown/Search - Fixed issue where using
.trigger('change')
would not fire nativechange
event. Only triggering event handlers attached with jQuery #3108 - Dropdown - Search dropdowns will now correctly filter by current search term on re-focus
- Dropdown -
search dropdown
will now initialize withautocomplete="off"
to avoid triggering native autocomplete menu - Search - Fixes
onSearchQuery
not firing when results are cached Thanks @mnquintana - Search - Fixes
url
parameter not working correctly due to typo in source Thanks @fabienb4
- Dropdown - Dropdown using remote data, can now customize the property names returned by api call using
fields
(similar to search). - Search - Search now can use any server response mapping, use the
fields
parameter to pass in a mapping of server response to content thanks @anibalmf1 #2645
- Dropdown -
forceSelection
no longer sets current value in search selection when current query is blank #2058 - Dropdown - Fixed issue where "no results" message would be still be visible before search query on input focus #2824
- Dropdown - Fixed issue where selected item would not be shown when being re-shown after filtering with single search selection #2824
- Search - Calling
.search('show results')
no longer fails when input is not focused #2842
- Dropdown - Fixed issue causing
multiple search dropdown
usingsearch
inside menu to break when multiple #2666
- Dropdown - Fixed
search selection
appearing incorrectly inside menu (default text would not disappear) #2624
- Dropdown - Fixed regression in
2.0.1
causing search dropdown not to clear values correctly #2533
- Dropdown - Added remote API integration with dropdown, to allow
search selection
to query against a remote dataset. - Dropdowns - Added ability to add custom choices to all search selection dropdowns (multi/single) using
allowAdditions: true
setting. Search now displays error messages on no results in all cases. - Dropdown -
fullTextSearch: true
now uses fuzzy search (same asui search
) - Search - Cache can now be cleared using
$('.search').search('clear cache')
- Search - Search now operates off a unique id generated by result position to retrieve results. For example category #1's first result is 'A1' . Previously result titles were used as their "id", which could cause issues with duplicate titles, or results that do not contain a title.
- Search - Search will now automatically add class
category
when usingtype: category
. - Search - Search will now generate
results
container if one is not present on init - Search - Search now uses
em
for resizes, making sure it will resize with the surrounding content - Search - Search
prompt
now has focus styles defined if not usingui input
- Dropdown - Fix issue with search dropdown refocusing on self the first time after "tabbing" away in Chrome
- Dropdown - Fixed issue with
search selection
not changing text when reselecting same value from list - Dropdown - Fixed
search dropdown
submitting parent form when enter shortcut pressed - Search - Search will no longer incorrectly produce an error when API settings are passed through metadata
- Search - Fixed
category search
not applying active styles correctly to category names - Search - Fixed
onSelect
not returning the correct value when usingtype: category
- Search - Fixed
onSelect
returning the first term that matches the beginning of the selected value not the exact value. - Search - Fix
loading search
with anicon button
causing double loaders. - Search -
searchFields
setting now correctly replaces default fields instead of adding the user fields to defaults - Search - Calls to
set value
orquery
now obeyminCharacterLength
- Search - Search API calls now use the same level debug settings as search
- Search - Slightly adjusted search result theme for clarity
- Dropdown - Fix bug where element will not blur on tab key when search selection and no selection made
- Search - Search now uses internally fuzzy search as its new full text search algorithm.
- Dropdown - Fixes issue where dropdown would not open after restoring previous value on failed
search dropdown
search - Dropdown - Fixes issue where dropdown would not open after restoring previous value on failed
search dropdown
search - Search - Fix special characters not searching correctly with local search
- Search - Fix a bug with
onSelect
returningnull
whenminCharacters: 0
- Search - Fix a bug with
onSelect returning
null` when results retrieved from cached API query - Form - Added
input[type="search"]
styles toui form
- Search - Fixes bug in category search causing item selection to sometimes produce a javascript error.
- Search - Category search no longer displays unnecessary error message about maxResults
- Dropdown -
search selection dropdown
will now close the menu when adropdown icon
is clicked - Dropdown - Added new dropdown setting,
forceSelection
which forcessearch selection
to a selected value on blur. Defaults totrue
.
- Search - Search
onSelect
now receives JSON object matching currently selected element, you can now programmatically retrieve result JSON using.search('get result', 'query')
or.search('get results')
.get result
will default to current value unless specified as first parameter. - Search - Greatly reduced search delay from
300ms
to100ms
. Previous request will automatically abortxhr
when new request made - Search - Search
onSelect
andonResultsAdd
can now cancel default actions by returningfalse
. - Dropdown - Dropdown no longer will not show menu when no
item
are present in menu. Dropdown will now only filter results forui search dropdown
#1632 Thanks PSyton. - Search - Search results no longer hide/show when user changes tab or page loses focus
- Dropdown - Search dropdown input can now have backgrounds. Fixes issues with autocompleted search dropdowns which have forced yellow "autocompleted" bg.
- Dropdown - Fix issue with search selection not correctly matching when values are not strings
- Dropdown - Fixes dropdown search input from filtering text values when input is inside menu, i.e "In-Menu Search"
- Dropdown - Fix issue with search selection not correctly creating RegExp when select values are not strings Thanks @alufers
- Form -
ui search dropdown
inside a form has incorrect focus style
- Search - Fixed issue with local search returning all results due to improper regexp
- Dropdown/Search - Fixed issues with
ui search
andui search dropdown
usingRegExp test
which advances pointer on match causing results to display incorrectly
- Dropdown - Full text search now defaults to
false
, meaning search terms will return only results beginning with letters - Dropdown - Search Dropdown is now much more responsive, js improvements and input throttling added.Throttling defaults to
50ms
and can be modified with settingsdelay.search
- Dropdown - Search Dropdown now correctly replaces placeholder text when backspacing to empty value
- Dropdown - Search Dropdown now has a callback when all results filtered
onNoResults
- Dropdown - Search dropdown will now strip html before searching values when searching html
- Dropdown - Search now has keyboard shortcut to open dropdown on arrow down
- Dropdown - New dropdown type, searchable selection for large lists of choices