Skip to content

Commit

Permalink
Fix: Focus change in selection on radio buttons updates ui
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Mar 17, 2023
1 parent e56a662 commit e78b567
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/McqView.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ class McqView extends QuestionView {

onItemFocus(event) {
if (!this.model.isInteractive()) return;

if (this.model.get('_isRadio')) {
this.onItemSelect(event);
return;
}
const index = parseInt($(event.currentTarget).data('adapt-index'));
const item = this.model.getChildren().findWhere({ _index: index });
item.set('_isHighlighted', true);
Expand Down

0 comments on commit e78b567

Please sign in to comment.