You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding vaadin combobox dynamically, only supplying filtered-items prevents the ability to provide a selected value.
Using many items, filtering the dropdown, and then selecting one of the items hangs the DOM for seconds.
Expected outcome
Only supplying filtered-items in a dynamically created vaadin combobox should not cause an exception.
Upon filtering and selecting an item, it should not hang the DOM.
Actual outcome
Supplying filtered-items throws the exception:
"TypeError: Cannot read property '5' of undefined
at HTMLElement._getFocusedItem (https://polygit.org/vaadin-combo-box+vaadin+3.0.3/polymer+%5E2.0.0/components/vaadin-combo-box/vaadin-combo-box-dropdown-wrapper.html:210:29)
at runMethodEffect (https://polygit.org/vaadin-combo-box+vaadin+3.0.3/polymer+%5E2.0.0/components/polymer/lib/mixins/property-effects.html:813:17)
at Object.runComputedEffect [as fn] (https://polygit.org/vaadin-combo-box+vaadin+3.0.3/polymer+%5E2.0.0/components/polymer/lib/mixins/property-effects.html:432:18)
at runEffectsForProperty (https://polygit.org/vaadin-combo-box+vaadin+3.0.3/polymer+%5E2.0.0/components/polymer/lib/mixins/property-effects.html:159:14)
at runEffects (https://polygit.org/vaadin-combo-box+vaadin+3.0.3/polymer+%5E2.0.0/components/polymer/lib/mixins/property-effects.html:125:13)
at runComputedEffects (https://polygit.org/vaadin-combo-box+vaadin+3.0.3/polymer+%5E2.0.0/components/polymer/lib/mixins/property-effects.html:409:14)
at HTMLElement._propertiesChanged (https://polygit.org/vaadin-combo-box+vaadin+3.0.3/polymer+%5E2.0.0/components/polymer/lib/mixins/property-effects.html:1691:9)
at HTMLElement._flushProperties (https://polygit.org/vaadin-combo-box+vaadin+3.0.3/polymer+%5E2.0.0/components/polymer/lib/mixins/properties-changed.html:338:18)
at HTMLElement._flushProperties (https://polygit.org/vaadin-combo-box+vaadin+3.0.3/polymer+%5E2.0.0/components/polymer/lib/mixins/property-effects.html:1551:15)
at HTMLElement.__enableOrFlushClients (https://polygit.org/vaadin-combo-box+vaadin+3.0.3/polymer+%5E2.0.0/components/polymer/lib/mixins/property-effects.html:1596:22)"
DOM hangs for seconds when filtering then selecting an item.
In the video, I change filtered-items to items, which circumvents the exception but breaks my particular use case. It also causes the DOM to hang when filtering and selecting an item.
The following changes seem to fix the first item in this issue. However, it causes another problem. Upon selecting an item, opening the dropdown, and selecting a different item, the selected value does not change anymore.
Description
filtered-items
prevents the ability to provide a selected value.Expected outcome
filtered-items
in a dynamically created vaadin combobox should not cause an exception.Actual outcome
filtered-items
throws the exception:Live Demo
jsbin
Steps to reproduce
In the video, I change filtered-items to items, which circumvents the exception but breaks my particular use case. It also causes the DOM to hang when filtering and selecting an item.
video
Browsers Affected
The text was updated successfully, but these errors were encountered: