Skip to content

Commit

Permalink
Merge pull request #206 from adaptlearning/issue/205
Browse files Browse the repository at this point in the history
Fix: Revert touch fix for react+safari for general fix in core
  • Loading branch information
eleanor-heath authored Apr 17, 2023
2 parents 17eaf08 + a49a34c commit 593e590
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions js/McqView.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import QuestionView from 'core/js/views/questionView';
import device from 'core/js/device';

class McqView extends QuestionView {

Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 593e590

Please sign in to comment.