MDL-75978 Quiz\D&D: on mobile, a moving line-wrap can bork the question

This commit is contained in:
Thong Bui
2022-12-22 10:08:59 +07:00
parent 089260dae2
commit 1bde415012
3 changed files with 7 additions and 2 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+5
View File
@@ -393,6 +393,11 @@ define([
drop.focus();
}
} else {
// Prevent the drag item drop into two drop-zone.
if (this.getClassnameNumericSuffix(drag, 'inplace')) {
return;
}
this.setInputValue(this.getPlace(drop), this.getChoice(drag));
drag.removeClass('unplaced')
.addClass('placed inplace' + this.getPlace(drop));