elm-ui-select/CHANGELOG.md
2023-03-13 09:19:53 +00:00

52 lines
1.6 KiB
Markdown

# Changelog
# 3.1.3
### Fixes
- Fixed a potential issue related to previous filtering optimisations where filtering could run more than necessary if items were set in view instead of init.
### Enhancements
- After pressing the clear button if any, focus will go to the input.
# 3.1.2
### Enhancements
- More filtering optimisations. Prevented case where filtering would still run on DOM updates if the input or items were changed programatically, such as when updated by a request.
## 3.1.1
### Enhancements
- Optimised filtering. Previously filtering ran every time the virtual DOM re-rendered the select. This caused performance issues with large lists of items. Now the filter only runs when the input or options are changed.
- Filter startsWithThenContains now uses a faster implementation.
## 3.1.0
### New features
- Added withMinInputLength to only show items if a minimum number of characters is typed into the input.
## 3.0.0
### Breaking changes
- Changed updateWithRequest to updateWith to allow more configuration of update.
### New features
- New update options: `onSelectedChanged`, `onInput`, `onFocus` and `onLoseFocus` allow triggering your messages from update functions.
- `withSelectOnTab` enables configuring whether the currently highlighted option is selected on pressing tab.
- `defaultOptionElement` provides a simpler way to change how the text label shows for an option if you want to keep the default option styling.
### Enhancements
- The currently selected item should scroll into view when the input if focused.
- Slightly darkened the selected colour of the default option element.
## 2.1.1
- Added Select.isFocused