Skip to content

Commit 762edf5

Browse files
paodbjavier-godoy
authored andcommitted
fix(demo): replace use of addThemeVariants in RadioButtonGroup
This is needed for compatibility with Vaadin 24+. Close #93
1 parent 2165a5d commit 762edf5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/test/java/com/flowingcode/vaadin/addons/orgchart/EditChartDemo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ private VerticalLayout getEditionLayout() {
212212
// #endif
213213
// show-source typeSelector.setItems("Parent(root)", "Child", "Sibling");
214214
typeSelector.setValue("Child");
215-
typeSelector.addThemeVariants(RadioGroupVariant.LUMO_VERTICAL);
215+
// #if vaadin eq 0
216+
typeSelector.getThemeNames().add("vertical");
217+
// #endif
218+
// show-source typeSelector.addThemeVariants(RadioGroupVariant.LUMO_VERTICAL);
216219

217220
// New node(s) layout (dynamic)
218221
newNodeFieldsLayout = createVerticalLayout();

0 commit comments

Comments
 (0)