Commit be48efc9 authored by Paul Holden's avatar Paul Holden

MDL-70580 core: retrieve closest tree node in click handler.

parent d0bc8939
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment