-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Describe the bug
The component is not visible after being added to the layout, even though it is present in the DOM.
Expected behavior
The component should be visible.
Minimal reproducible example
- Download minimal starter for Vaadin Flow 24 (Spring boot 3.4.4).
- Add addon dependency 24.7.1
- Add ChipField to layout
- Build and run
public class AboutView extends VerticalLayout {
public AboutView() {
setSpacing(false);
ChipField<String> searchField = new ChipField<>("Buscar", s -> s);
ListDataProvider<String> ldp = new ListDataProvider<>(List.of("GIRASOL", "MAIZ", "SOJA", "TRIGO", "CEBADA", "ARROZ", "AZUCAR", "CANA DE AZUCAR", "CEREALES", "LEGUMBRES"));
searchField.setWidthFull();
searchField.setDataProvider(ldp);
searchField.setClosable(true);
searchField.setNewItemHandler(label -> label);
add(searchField);
setSizeFull();
setJustifyContentMode(JustifyContentMode.CENTER);
setDefaultHorizontalComponentAlignment(Alignment.CENTER);
getStyle().set("text-align", "center");
}
}
Add-on Version
2.6.1
Vaadin Version
24.7.1
Additional information
The following properties were added to application.properties:
vaadin.allowed-packages = com.vaadin,org.vaadin,com.flowingcode
vaadin.whitelisted-packages = com.vaadin,org.vaadin,dev.hilla,com.flowingcode
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested
Type
Projects
Status
Inbox (needs triage)
