Hello,
I seem to have found a strange behaviour of Vaadin Flow.
I recently tried to use a Dialog
component by simply creating it on the fly like: new Dialog(new Button("Dialog")).open();
.
But when the application runs this code, there is just a <vaadin-dialog>
tag added to the DOM, but the component isn’t rendered anywhere. There are no JS errors either.
I have a similar problem with the Select
component. But with this component when I add it to the DOM, all the options are rendered as a list at once.
Both of these errors are solved when I instantiate both components once directly at the constructor of my main @Route
component. Has anyone had such a behaviour before? Are there solutions to this?
I currently use vaadin flow 14.0.6.