forms: do not replace radio values when live prefill is played (#52054)

This commit is contained in:
Frédéric Péters 2021-03-15 15:34:06 +01:00
parent 74c9e66d6a
commit 4235227cbc
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ $(function() {
} else {
// replace text input value
if ($(widget).is('.widget-prefilled') || $(widget).is('.widget-readonly') || data.modified_field == 'user') {
$(widget).find('input, textarea').val(value.content);
$(widget).find('input[type=text], input[type=email], textarea').val(value.content);
}
}
});