All notable changes to this project will be documented in this file.
deleteAll
rendered at the beginning of the selected items, and only if more than 1 item is selected.- Handling click event on potential HTML children of options.
- Documentation for
showAll
&deleteAll
controls.
- Input
aria-describedby
to point tosr-assistance
permanently. - Help differentiate controls from several autocomplete by adding them
aria-describedby
pointing to the label.
deleteAllControl
option to render a control that triggers removing all selected items.srDeleteAllText
option for this control's text.
- Clear
srAssistance
variable on destroy.
- Add
keepUserInput
option. Keep user input even if there are no results.
- Accessibility issues :
- focus was lost after deletion of a selected item : return on the input.
- aria-describedby for the suggestions list.
- screenreader texts as p instead of span.
sr-assistance
hidden with display none.sr-announcements
emptied 2s after each announcement.- selected items rendered after the suggestions list instead of before.
isSelectedElem()
now returns false instead of undefined.
onChange
callback option that fires when the selected item(s) changes, and provides all selections in an array as an argument.onFocus
callback option that fires when the overall component gains focus, and receives the component wrapper as an argument.onBlur
callback option that fires when the overall component loses focus, and receives the component wrapper as an argument.id
option to set a specific ID on the generated input- the function usage of the
source
option can now take a Promise which resolves with the items to render, instead of having to use the provided second argument callback onAsyncBeforeSend
callback option, to allow adjustments to the xhr object before it is sent (e.g. adding auth headers)
- The
name
option now works correctly. - In certain cases, the change event fired on the original input before the API's
selected
array was updated. - Added a workaround for an IE11 bug where the options were shown on load if the
minLength
was set to 0 on a multi-select autocomplete with starting values. This was due to the input's placeholder being removed, which erroneously triggers theinput
event in IE11. - Edge case errors when destroying the component immediately after certain actions (such as selecting an item, or blurring off of the component).
- TypeScript definitions not included in npm package
1.1.3 - 2020-02-04
- Issue where hitting the enter key after running a search with a value prevented the down arrow from moving focus to the first item in the results. Thanks to /u/holloway on reddit for discovering this.
1.1.2 - 2020-01-31
- Issue with autoGrow not triggering after deleting an item in multiple mode when the placeholder is re-added to the input
1.1.1 - 2020-01-29
- Issue where
hide
related classes were incorrectly being added to aselect
element's children, instead of to theselect
, due to a dependency issue
1.1.0 - 2020-01-29
- Home key usage to go to first item in the list
- End key usage to go to last item in the list
onAsyncError
callback option
- Moved code and build over to TypeScript for: code improvements, self-documentation, and reduced bundle size by using an ES6 output from TypeScript that's bundled to UMD with webpack.
- Issue with the API filter method getting an error
- Issue when clicking on a single-select autocomplete with minLength of 0 with a current selection, which was correctly searching with an empty string, but the polling method was then triggering a search with the value afterwards.
- Screen reader announcements for results ignoring the number of results rendered