From a49a34c01794317519ffe92c43ce16e4c437fd9e Mon Sep 17 00:00:00 2001 From: Oliver Foster Date: Fri, 14 Apr 2023 14:50:36 +0100 Subject: [PATCH] Fix: Revert touch fix for react+safari for general fix in core --- js/McqView.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/js/McqView.js b/js/McqView.js index 101dcac..8c8cd5f 100644 --- a/js/McqView.js +++ b/js/McqView.js @@ -1,5 +1,4 @@ import QuestionView from 'core/js/views/questionView'; -import device from 'core/js/device'; class McqView extends QuestionView { @@ -26,7 +25,6 @@ class McqView extends QuestionView { } onItemFocus(event) { - if (device.touch) return; if (!this.model.isInteractive()) return; if (this.model.get('_isRadio')) { this.onItemSelect(event); @@ -38,7 +36,6 @@ class McqView extends QuestionView { } onItemBlur(event) { - if (device.touch) return; const index = $(event.currentTarget).data('adapt-index'); const item = this.model.getChildren().findWhere({ _index: index }); item.set('_isHighlighted', false);