You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You would expect a button click would select the second tab.
Currently an exception is printed instead
java.lang.IllegalArgumentException: Tab to select must be a child: Tab{}
at com.vaadin.flow.component.tabs.Tabs.setSelectedTab(Tabs.java:381) ~[vaadin-tabs-flow-2.0.4.jar:na]
at com.example.app.MainView.lambda$0(MainView.java:38) ~[classes/:na]
The text was updated successfully, but these errors were encountered:
From an implementation point of view, this would at the very least mean that when one @Id element is the child of another @Id element, then Flow should set up a parent-child relationship between them.
It may also be necessary to define elements (but not component instances) for the siblings so that the relative position of the child can be determined.
As said in vaadin/vaadin-tabs-flow#67 (comment) we were not going to do anything about this and would simply not recommend using @Id mapping with Tabs.
My bet is that this is quite big task to do, and I'm not sure if this is just about what @Legioth said about the parent-child relationship but also would need changes to the Tabs component.
So the question would be: do we really need to fix this ? How did you come up with this use case @Artur- ?
Given
main-view.js
and
MainView.java
You would expect a button click would select the second tab.
Currently an exception is printed instead
The text was updated successfully, but these errors were encountered: