From e78b56787f80a6df90b9bc28f2ba80a12d546eb4 Mon Sep 17 00:00:00 2001 From: Oliver Foster Date: Fri, 17 Mar 2023 16:23:34 +0000 Subject: [PATCH] Fix: Focus change in selection on radio buttons updates ui --- js/McqView.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/McqView.js b/js/McqView.js index 3fb72ab..8c8cd5f 100644 --- a/js/McqView.js +++ b/js/McqView.js @@ -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);