mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-70580' of git://github.com/paulholden/moodle
This commit is contained in:
commit
81cb8b9f09
3 changed files with 5 additions and 5 deletions
2
lib/amd/build/tree.min.js
vendored
2
lib/amd/build/tree.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -491,9 +491,9 @@ define(['jquery'], function($) {
|
|||
return;
|
||||
}
|
||||
|
||||
var item = $(e.target);
|
||||
|
||||
if (e.target !== e.currentTarget) {
|
||||
// Get the closest tree item from the event target.
|
||||
var item = $(e.target).closest('[role="treeitem"]');
|
||||
if (!item.is(e.currentTarget)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue