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

The component won't open in a Vaadin Dialog #77

Open
Sryther opened this issue Oct 20, 2020 · 0 comments
Open

The component won't open in a Vaadin Dialog #77

Sryther opened this issue Oct 20, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@Sryther
Copy link

Sryther commented Oct 20, 2020

Original post: #46 comment.

I could not achieve to display the multiselect like it did before a vaadin upgrade. It worked in the past and since I updated and switched to Material theme I had no luck with it.

I was using the version 14.1.25 and now the version 14.4.0. I tried the "intermediate" version 14.3.7 but the issue looked like the same.

I think I'm in the same situation as #46.

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 (TypeError) : $0.$connector is undefined error and (TypeError) : window.Vaadin.Flow.multiselectComboBoxConnector is undefined.

I'm using Maven:

<dependency>
	<groupId>org.vaadin.gatanaso</groupId>
	<artifactId>multiselect-combo-box-flow</artifactId>
	<version>2.4.2</version>
</dependency>

I tried to use a wrapper element as suggested (div) but it didn't work for me.

For now I switched to the latest Vaadin component MultiSelectListBox<>, introduced in 14.1, because I couldn't wait more for a fix. But your component is still more user-friendly than the Vaadin one.

By the way, thank you very much for this component, it did save a lot of time :).

@gatanaso gatanaso added the bug Something isn't working label Feb 9, 2022
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

2 participants