Releases: vaadin/vaadin-combo-box
v4.2.8
Live Demo →
API Documentation →
Fixes
attr-for-value
feature ofvaadin-combo-box-light
didn't work in all cases (#778)
Changes Since v4.2.7:
-
763a98d fix: bind value correctly when using attr-for-value (#797)
When using
attr-for-value
different than "value", the data binding of value wasn't fully working. This only happened to work with theiron-input
example we have ("Replacing the Input" example) becauseiron-input
also has a "value" property. When using a custom input withattr-for-value
different than "value" the user was unable to change the value of the input by interacting with it via the keyboard. This is now also working.Fixes #778
v4.2.7
Live Demo →
API Documentation →
Fixes
- Change event not fired when selecting an item by clicking (#792)
Changes Since v4.2.6:
v4.2.6
Live Demo →
API Documentation →
Fixes
- Calling
render()
before first open does not throw an error anymore (#780) - DataProvider is called after filtering and selecting an item (#783)
- Performance improvements (connected to #767)
Changes Since v4.2.5:
-
a0705a6 Close overlay before setting
selectedItem
(#785)Otherwise, the observer of selectedItem resets the filter, which causes
the dataProvider to be called, because combo box still thinks it's open.Fix #783
-
e6c299d fix: do not throw when calling
render()
before first open (#781) -
41f8709 refactor: defer scroll position adjustment until rAF (connected to #767)
-
3ca005c refactor: use
disable-upgrade
to lazy upgrade dropdown (connected to #767)
v4.2.5
Live Demo →
API Documentation →
Changes Since v4.2.4:
v4.2.4
Live Demo →
API Documentation →
Changes Since v4.2.3:
-
aaa53b1 Revert "Close the overlay if size is 0 after data provider callback (#752)" (#773)
This reverts commit 6a94726.
-
28dfc8b Don't request empty loaded page again (#772)
Previously, combobox didn't request a page again if it was already
loaded, but this logic did not apply if the returned array was empty.This caused a bug in the Flow component, as the Flow dataprovider
doesn't return the empty array again after it has already given this
data to the client. This left the combobox hanging in loading state.Flow component issue:
vaadin/vaadin-combo-box-flow#178 -
adfe7b7 fix: use only root level template as the item template (#768)
-
9b58f49 Remove extra filteredItems when size decreases (#771)
This is a fix for a bug found in the Flow component:
vaadin/vaadin-combo-box-flow#177Clearing the cache and returning less items than previously from the
dataProvider resulted in extra placeholder items. -
ebd8f9a Fix visual tests: update screenshot for Firefox (#770)
-
ae2b3a1 chore: remove analysis.json [skip ci]
v4.2.3
Live Demo →
API Documentation →
Changes Since v4.2.2:
v4.0.3
Live Demo →
API Documentation →
Changes Since v4.0.2:
v4.2.2
Live Demo →
API Documentation →
Changes Since v4.2.1:
-
0f8883b fix(theme): add missing color imports for lumo and material
-
24d7a35 chore(demo): add when-defined for demo snippets
-
0e9d613 chore(bower): update vaadin-demo-helpers, remove iron-demo-helpers
-
ee57db8 chore(bower): remove direct test-fixture dependency
-
b8bd774 Explicitly specify port in 'npm start' script
-
8c30225 Add 'npm start' script
v4.2.1
Live Demo →
API Documentation →
Changes Since v4.2.0:
-
6a94726 Close the overlay if size is 0 after data provider callback (#752)
-
8192d24 Postpone overlay stamping to first opening (#750)
This is a performance improvement.
When attaching a lot of combo boxes at once, the initial render can take a lot of time. Most of the time is spent on executing logic related to the overlay. This functionality is not needed until the overlay is opened, and it is wasted effort for any combo box on the page that the user doesn't open.
As a trade-off the first opening takes a bit longer. But the bigger problem was the huge delay caused by initializing a lot of combo boxes at once.
Fixes #748
v4.2.0
Live Demo →
API Documentation →
Changes Since v4.1.0:
New Features
Item rendering
<vaadin-combo-box>
supports using customrenderer
callback function for defining the content of<vaadin-combo-box-item>
.- The renderer function provides
root
,comboBox
,model
arguments when applicable.
Generate DOM content by usingmodel
object properties if needed, append it to theroot
element and control the state of the host element by accessingcomboBox
. Before generating new
content, users are able to check if there is already content inroot
for reusing it.
Lazy loading
- Added the
dataProvider
property allowing to set the function which loads items lazily
Raw commit history
-
ddcaddf Reuse the same placeholder instance
-
cd4e3f5 Update overlay dependency to stable version
-
f896901 Fix demo syntax
-
42b2f77 fix: add loader part and style loading items state
-
74b7809 Avoid getting placeholders marked selected while loading
-
340718c Don't throw with large size on clearCache
-
85a2fc0 Don't throw with large size
-
7233f1a Remove Polymer mention from package description [skip ci]
-
36659c6 Fix error message when both template and renderer are set
-
3f8beb9 Clear pending requests on clearCache
-
20049a0 Use filtered-countries in lazy loading demo [skip ci]
-
f2ed635 Improve dataProvider demo
-
3eb880e Add dataProvider docs
-
554c5d5 Fix incorrectly reset selectedItem when custom value allowed
-
e1840b9 Improve renderers docs
-
b3a8d66 Don't add content with innerHTML in renderer demos
-
86ffe2a Propagate theme attribute to internal components
-
e9eed1e Add render method for manual renderer invocation
-
e7a05d1 Add test for manual renderer invocation
-
a4453a8 Remove unused paper elements from demos
-
f03e9cb Update dependencies to latest versions
-
a9a8e6f Remove unused and add missing imports
-
4bb2982 Remove duplicate touch device detection
-
0e20b41 Remove
IronA11yKeysBehavior
as not actually used anymore -
d193d48 Cleanup legacy and duplicate code, remove unused
notify: true
-
379ef3b Added visual tests for Material theme
-
d0b5c90 Update renderers demos [skip ci]
-
ea0f6b5 Move the renderer docs section upper [skip ci]
-
608bd66 Align renderer API docs with context-menu [skip ci] (#697)
-
9ec9867 Update demos to prefer renderers
-
8fc6aef Throw error and clean template or renderer when are assigned together
-
5560cec Fix clearing of the root for template and renderer function
-
01a9952 Combine renderer, item and index observers, improve test
-
34907ef Update renderer args and bump analysis.json
-
97ca635 Add renderer binding to light version
-
9d9fcc9 Update args order and analysis.json
-
964c6ac Fix renderer tests
-
8640832 Update docs and bump analysis.json
-
45dab4f Remove renderer declaration from light version
-
8f9f2c0 Update demo wording
-
5179e6a Update demo, docs and bump analysis.json
-
e418aff Fix docs
-
5c45c6e Fix rendering during scrolling
-
a579c3b Fix and update demo
-
87ec31b Update docs, owner property of renderer function and add test for root, model and owner
-
a9e71b7 Update docs and wording, bump analysis.json
-
a792222 Add item renderer demo
-
9baf4b2 Add item renderer implementation
-
6f6f2a8 Add renderer test