Radio Button Group deselect/un-select not works
bishwajitcse opened this issue · 1 comments
bishwajitcse commented
When trying to deselect radio button group with setValue(null). than not deselect the selected radio button.
radioButtonGroup.setValue(null)
web-padawan commented
Tried with the following example and could not reproduce:
RadioButtonGroup<String> radioGroup = new RadioButtonGroup<>();
radioGroup.setLabel("Label");
radioGroup.setItems("Option one", "Option two", "Option three");
radioGroup.addThemeVariants(RadioGroupVariant.LUMO_VERTICAL);
radioGroup.setValue("Option one");
Button button = new Button("Clear", event -> {
radioGroup.setValue(null);
});
add(button, radioGroup);
Closing as fixed. Please submit a new issue with a code example in case if this is still an issue.