-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Add missing things in hide
method of dropdown
#33451
Conversation
@rohit2sharma95 can you check if this applies to v4-dev too? And also @GeoSot's last comment :) |
Yes @XhmikosR , it will be backported to V4. |
8d8c97e
to
31f508a
Compare
aria-expanded
attribute in hide
method of dropdownhide
method of dropdown
[].concat(...document.body.children) | ||
.forEach(elem => EventHandler.off(elem, 'mouseover', null, noop())) | ||
} | ||
|
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.
I think, till next pr this is not valid. you call it in the hide
function, it is not triggered by any event ;)
@rohit2sharma95 can you please backport this? |
Purpose:
hide
method, the value of thearia-expanded
attribute should be updated to false (like it is being inclearMenus
for now).hide
method should remove event listener on the touch-enabled device (That was added in show method)Preview: https://deploy-preview-33451--twbs-bootstrap.netlify.app/docs/5.0/components/dropdowns/