MDL-70580 core: retrieve closest tree node in click handler.
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user