Skip to content

Commit

Permalink
removed restriction on selecting when optionsaftertext
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Jun 19, 2022
1 parent a064f95 commit c12da2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mobile/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ var result = {
var i;
for (i = 0; i < draggables.length; i++) {
// If singleuse is set some fields may be hidden .
draggables[i].classList.remove('hide');
/* Optionsaftertext reference is to stop the listener being applied twice */
if (draggables[i].id && !this.question.optionsaftertext) {
draggables[i].classList.remove('hide');
if (draggables[i].id) {
draggables[i].addEventListener('click', function() {
self.LastItemClicked = pickAnswerOption(draggables, event);
});
Expand Down

0 comments on commit c12da2b

Please sign in to comment.