Commit 6c8c4de6 authored by Enrique Alcantara's avatar Enrique Alcantara

Check exception class in parent element

parent 2d363957
......@@ -164,7 +164,11 @@ export default {
'js-dropdown-button',
'js-btn-cancel-create',
'js-sidebar-dropdown-toggle',
].some(className => target?.classList.contains(className));
].some(
className =>
target?.classList.contains(className) ||
target?.parentElement.classList.contains(className),
);
const hadExceptionParent = ['.js-btn-back', '.js-labels-list'].some(
className => $(target).parents(className).length,
......
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