-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#62] Fixed For navigation, accordion and side bar components - UP does not close open menu/accordion. #114
Conversation
…es not close open menu/accordion.
…es not close open menu/accordion.
@@ -255,7 +255,11 @@ CivicThemeCollapsible.prototype.collapse = function (animate, evt) { | |||
} | |||
|
|||
if (evt && evt.target) { | |||
if (evt.currentTarget !== t.el || evt.target !== t.el) { | |||
if (evt.detail.keydown) { | |||
if (evt.target.closest('li') !== t.el) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshua-salsadigital
we cannot target elements by tag as it will not be portable - collapsible is not aware on which components it is used. please find another way to solve this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes #62
Checklist before requesting a review
as
[#123] Verb in past tense with a period at the end.
Changed
section about WHY something wasdone if this was a bespoke implementation.
and they have passed.
Changed
Screenshots
https://nimb.ws/kouGV6B