diff --git a/addons/survey/static/src/js/survey_form.js b/addons/survey/static/src/js/survey_form.js index d48523e8324..4ee30dd0f23 100644 --- a/addons/survey/static/src/js/survey_form.js +++ b/addons/survey/static/src/js/survey_form.js @@ -117,11 +117,7 @@ publicWidget.registry.SurveyFormWidget = publicWidget.Widget.extend({ && letter.match(/[a-z]/i)) { var $choiceInput = this.$(`input[data-selection-key=${letter}]`); if ($choiceInput.length === 1) { - if ($choiceInput.attr('type') === 'radio') { - $choiceInput.prop("checked", true).trigger('change'); - } else { - $choiceInput.prop("checked", !$choiceInput.prop("checked")).trigger('change'); - } + $choiceInput.prop("checked", !$choiceInput.prop("checked")).trigger('change'); // Avoid selection key to be typed into the textbox if 'other' is selected by key event.preventDefault();