Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combobox does not select an item when appended to DOM, but before 'items' are set #580

Closed
1 of 7 tasks
asashour opened this issue Nov 28, 2017 · 1 comment
Closed
1 of 7 tasks

Comments

@asashour
Copy link
Contributor

Description

vaadin-combo-box does not select an item when appended to DOM, but before items are set (Chrome)

Expected outcome

A combox should always select 'item1', no matter what order the appendChild()/.items/.selectedItem is set

Actual outcome

In latest Chrome, the first scenario appendThenSelectedThenItems() doesn't show selected value, but in FF ESR, it does.

Live Demo

https://jsfiddle.net/v6mqmcwj/1/

Steps to reproduce

  1. Open the page in a web browser.
  2. Click on four buttons
  3. Check the added comboboxes

Browsers Affected

  • Chrome
  • Firefox (works)
  • Safari (not tested)
  • Edge (not tested)
  • IE 11 (doesn't show the combobox at all)
  • iOS Safari (not tested)
  • Android Chrome (not tested)
@asashour
Copy link
Contributor Author

asashour commented Dec 4, 2017

Can someone please confirm if this is a bug, or an expected behavior, before trying to fix it?

vicsstar added a commit that referenced this issue Jan 10, 2018
set selectedItem after DOM attaching and before items set (Fixes #580)
@vicsstar vicsstar removed the issue label Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants