-
Notifications
You must be signed in to change notification settings - Fork 24
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
Issue using MultiselectComboBox within Dialog. #46
Comments
Hi @matteocona, Thanks for reporting this issue and providing a reproducible example. I believe it's related to the shadow dom not being initialized when the component is used in a dialog. Will need some time to further investigate and find a way to resolve this issue. |
Thank you very much, |
- Added a call to invoke a server side function that will initialize the data connector. This is to ensure that when used with the dialog the component will be correctly initialized. The invokation of the server side function is only done when used with Vaadin Flow and has no effect on the standalone usage of this web component. (related to: gatanaso/multiselect-combo-box-flow#46)
Hi @matteocona, Could you please test with the following version: BR, |
Hi Goran, multiselect-combo-box-flow vaadin version Thanks a lot |
Hi Goran, Thank you very much |
Hi @matteocona, I cannot recall at this time :) Are there any issues when using Vaadin 14.1.x ? |
Hi @gatanaso unfortunately the component is not initialized properly when it is initially invisible within the dialog (sorry :-) ). The following code demoes the issue:
Using Maven Should I file this a new bug please? |
Thank you :) At first I thought it to be a Dialog-related issue, but it's really a visibility-related issue. I'll wrap the component with |
Hi, I could not achieve to display the multiselect like it did before the vaadin 14 upgrade. It worked in the past and since I updated and switched to Material theme I had no luck with it. This a sample of my code: MultiselectComboBox<XX> multiselectComboBox = new MultiselectComboBox<>("", XX.values());
multiselectComboBox.setValue(XX.Y);
Dialog dialog = new Dialog();
dialog.add(multiselectComboBox);
// Prepare the button that displays the multi statuses filter.
Button button = new Button(new Icon(VaadinIcon.FILTER), event -> {
dialog.open()
}); When I click on the button, I have the I'm using Maven:
Any ideas? By the way, thank you very much for this component, it did save a lot of time :). EDIT: I tried to use a wrapper element as suggested (div) but it didn't work for me. |
@Sryther Thanks for the feedback, I really appreciate it. Regarding your issue, it looks same as the one that was opened here originally. Might be then that something has changed in the way Vaadin initialises the dialog. Which version did you upgrade to, have you tried with another one perhaps? Also, in the spirit of keeping things a bit more organised, I'd kindly ask if you can open a new issue and we continue the discussion there. Thanks |
Hi Goran,
how are you? :)
Your multiselect is amazing and works pretty well :)
I have found the following issue:
items are not displayed if the multiselect is placed into a dialog.
I attach a simple test app and two screenshots.
The test app compare the behavior of the combo box and the multiselect combo box (both into dialogs).
Let me know if you need something more.
Thank you in advance :)
Matteo
test-multisel-dialog.zip
The text was updated successfully, but these errors were encountered: