flow-components icon indicating copy to clipboard operation
flow-components copied to clipboard

Radio Button Reset option

Open Meghna2528 opened this issue 6 years ago • 3 comments

radioButton.clear(); radioButton.setSelectedItem(null);

Nothing works when trying to reset radio buttons. (Or double clicking a radio button should deselect it).

Meghna2528 avatar Oct 03 '19 07:10 Meghna2528

radioButton.clear(); radioButton.setSelectedItem(null);

This need has come up a lot. +1.

(Or double clicking a radio button should deselect it).

Never seen this before, not sure we wanna do that.

anezthes avatar Mar 25 '20 13:03 anezthes

This might be not needed if we fix vaadin/vaadin-radio-button-flow#67 and make sure that setValue(null) actually works.

web-padawan avatar Mar 29 '20 18:03 web-padawan

We have the problem now, that setValue(null) clears the values. We want to display null as an explicit option when using radio buttons. However, clicking on the null value clears the selection, which is missleading, as the null value is indeed selected.

leluna avatar Jul 09 '24 10:07 leluna