From c8b917fece5571bd878c07df88a0972d0388e21f Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Fri, 29 Sep 2023 16:39:25 -0300 Subject: [PATCH] fix(demo): replace Label with Span --- .../flowingcode/vaadin/addons/twincolgrid/DragAndDropDemo.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/DragAndDropDemo.java b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/DragAndDropDemo.java index ff6205c..1ceeff8 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/DragAndDropDemo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/DragAndDropDemo.java @@ -23,7 +23,6 @@ import com.flowingcode.vaadin.addons.demo.DemoSource; import com.vaadin.flow.component.checkbox.Checkbox; import com.vaadin.flow.component.html.Div; -import com.vaadin.flow.component.html.Label; import com.vaadin.flow.component.html.Span; import com.vaadin.flow.component.orderedlayout.VerticalLayout; import com.vaadin.flow.function.SerializableRunnable; @@ -63,7 +62,7 @@ public DragAndDropDemo() { twinColGrid.setCaption("TwinColGrid demo with drag and drop support"); twinColGrid.setValue(selectedBooks); - final Label countLabel = new Label("Selected items in left grid: 0"); + final Span countLabel = new Span("Selected items in left grid: 0"); twinColGrid.getAvailableGrid().addSelectionListener( e -> countLabel.setText("Selected items in left grid: " + e.getAllSelectedItems().size())); twinColGrid.addValueChangeListener(e -> countLabel.setText("Selected items in left grid: 0"));