Skip to content

Commit

Permalink
fix: associate grid labels with the component
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy authored and paodb committed Oct 2, 2023
1 parent c8b917f commit dbf63f8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
import java.util.function.BinaryOperator;
import java.util.function.Consumer;
import java.util.function.Supplier;
Expand Down Expand Up @@ -92,7 +93,8 @@ private static final class TwinColModel<T> implements Serializable {
TwinColModel(@NonNull Grid<T> grid, String className) {
this.grid = grid;
layout = new VerticalLayout(columnLabel, grid);

grid.setId("grid-"+UUID.randomUUID().toString());
columnLabel.setFor(grid);
layout.setClassName(className);
grid.setClassName("twincol-grid-items");
columnLabel.setClassName("twincol-grid-label");
Expand Down

0 comments on commit dbf63f8

Please sign in to comment.