Merge branch 'master' into v4.0.0

This commit is contained in:
Tom Nunn 2023-03-10 21:44:24 +00:00
commit 0fda282e79
4 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## 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

View File

@ -87,4 +87,4 @@ view countries model =
## Limitations
There are issues when the input is placed within a parent element that has overflow scroll or auto: the menu may be clipped by the parent. This can be overcome by using [Select.withMenuPositionFixed](https://package.elm-lang.org/packages/nunntom/elm-ui-select/3.1.0/Select/#withMenuPositionFixed), but if the parent also has a transform applied, it gets clipped again. This means any parent with e.g. Element.scrollBarY + Element.moveDown/moveLeft etc. can cause issues. This is due to [a feature of the current CSS spec](https://bugs.chromium.org/p/chromium/issues/detail?id=20574).
There are issues when the input is placed within a parent element that has overflow scroll or auto: the menu may be clipped by the parent. This can be overcome by using [Select.withMenuPositionFixed](https://package.elm-lang.org/packages/nunntom/elm-ui-select/3.1.1/Select/#withMenuPositionFixed), but if the parent also has a transform applied, it gets clipped again. This means any parent with e.g. Element.scrollBarY + Element.moveDown/moveLeft etc. can cause issues. This is due to [a feature of the current CSS spec](https://bugs.chromium.org/p/chromium/issues/detail?id=20574).

View File

@ -3,7 +3,7 @@
"name": "nunntom/elm-ui-select",
"summary": "A select widget for Elm Ui",
"license": "BSD-3-Clause",
"version": "3.1.0",
"version": "3.1.1",
"exposed-modules": [
"Select",
"Select.Filter",

View File

@ -1,7 +1,7 @@
{
"name": "elm-ui-select",
"description": "A select widget for elm-ui.",
"version": "3.1.0",
"description": "A select widget for elm-ui with keyboard input, filtering, menu scrolling and requests!",
"version": "3.1.1",
"scripts": {
"test": "cd examples && elm-test && cd ../",
"review": "elm-review",