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

Dropdown not showing after changing visibility #56

Open
tco42 opened this issue May 27, 2020 · 2 comments
Open

Dropdown not showing after changing visibility #56

tco42 opened this issue May 27, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@tco42
Copy link

tco42 commented May 27, 2020

I try to show a multiselect after clicking a button by changing its visibility.

multiselect.setVisible(false);
button.addClickListener(event -> multiselect.setVisible(true));

This causes the dropdown list with all items to not show up after clicking the button / writing in the textfield.

Adding a multiselect to a layout/div and changing visibility on the layout works fine.

@gatanaso gatanaso added the bug Something isn't working label May 29, 2020
@gatanaso
Copy link
Owner

gatanaso commented May 29, 2020

Hi @tco42 and thanks for opening this issue. It's quite an interesting case. The client side code is executed and initialised (even though not visible). However, as it tries to call the server to register itself, that call is not forwarded by the framework and thus the component does not fully initialise. I will have to investigate further to see if there is a way to solve this.

For now, as you mentioned, you can work around it by adding it to a parent layout (using a Div could be sufficient enough I guess) and changing its visibility.

@martinisraelsen
Copy link

I'm experiencing the same issue. I have the Multiselect combo box in a Div that initially it set to hidden. When I later make it visible the Combobox aren't showing any items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants