Merge branch 'MDL-73034-master' of git://github.com/ferranrecio/moodle
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user