Merge branch 'MDL-70580' of git://github.com/paulholden/moodle

This commit is contained in:
Jun Pataleta 2021-01-13 10:20:20 +08:00
commit 81cb8b9f09
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -491,9 +491,9 @@ define(['jquery'], function($) {
return; return;
} }
var item = $(e.target); // Get the closest tree item from the event target.
var item = $(e.target).closest('[role="treeitem"]');
if (e.target !== e.currentTarget) { if (!item.is(e.currentTarget)) {
return; return;
} }