diff --git a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java index ac54453..97accdc 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/OrientationDemo.java @@ -56,7 +56,8 @@ public OrientationDemo() { twinColGrid.setValue(selectedBooks); FormLayout formLayout = new FormLayout(); - Select orientationField = new Select<>(Orientation.values()); + Select orientationField = new Select<>(); + orientationField.setItems(Orientation.values()); orientationField.addValueChangeListener(ev -> twinColGrid.withOrientation(ev.getValue())); orientationField.setValue(twinColGrid.getOrientation()); orientationField.setWidth("225px");