Merge branch 'MDL-73034-master' of git://github.com/ferranrecio/moodle

This commit is contained in:
Ilya Tregubov
2021-11-10 11:45:04 +02:00
3 changed files with 8 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
+6
View File
@@ -212,6 +212,12 @@ export default class extends BaseComponent {
* @param {Event} event the event.
*/
_dragStart(event) {
// Cancel dragging if any editable form element is focussed.
if (document.activeElement.matches(`textarea, input`)) {
event.preventDefault();
return;
}
const dropdata = this.parent.getDraggableData();
if (!dropdata) {
return;