Closed OlliTietavainenVaadin closed 6 months ago
Workaround:
Button saveButton = crud.getSaveButton();
saveButton.getElement()
.executeJs("")
.then(jsonValue -> saveButton.addThemeVariants(ButtonVariant.LUMO_SUCCESS));
Looks like the web component overrides the theme attribute for slotted buttons from the Flow component: https://github.com/vaadin/web-components/blob/1875686236814dcc065a0e067c87adb80153ce60/packages/crud/src/vaadin-crud-controllers.js#L39-L46
Description
Changing a CRUD's save button's theme doesn't work if you do it on the server right after the object has been instantiated.
Expected outcome
Theme should be updated correctly
Minimal reproducible example
Example:
Steps to reproduce
Environment
Vaadin version(s): 24.3 OS: n/a
Browsers
No response