JS - reset correctly radio buttons

This commit is contained in:
Calixte Denizet 2021-03-06 17:19:57 +01:00
parent 4b49db7c95
commit c01ef24541
3 changed files with 16 additions and 8 deletions

View file

@ -481,6 +481,9 @@ class RadioButtonField extends Field {
}
set value(value) {
if (value === null) {
this._value = "";
}
const i = this.exportValues.indexOf(value);
if (0 <= i && i < this._radioIds.length) {
this._id = this._radioIds[i];