Skip to content
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

Merged
merged 3 commits into from
Apr 1, 2021

Conversation

rohit2sharma95
Copy link
Collaborator

@rohit2sharma95 rohit2sharma95 commented Mar 23, 2021

Purpose:

  1. When hiding dropdown programmatically using the hide method, the value of the aria-expanded attribute should be updated to false (like it is being in clearMenus for now).
  2. 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/

@GeoSot GeoSot self-requested a review March 24, 2021 00:20
@XhmikosR
Copy link
Member

@rohit2sharma95 can you check if this applies to v4-dev too? And also @GeoSot's last comment :)

@rohit2sharma95
Copy link
Collaborator Author

Yes @XhmikosR , it will be backported to V4.

@rohit2sharma95 rohit2sharma95 changed the title Update aria-expanded attribute in hide method of dropdown Add missing things in hide method of dropdown Mar 24, 2021
[].concat(...document.body.children)
.forEach(elem => EventHandler.off(elem, 'mouseover', null, noop()))
}

Copy link
Member

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 ;)

@XhmikosR XhmikosR merged commit 20cfbdf into main Apr 1, 2021
@XhmikosR XhmikosR deleted the rohit/dropdown-hide-method branch April 1, 2021 18:51
@XhmikosR
Copy link
Member

@rohit2sharma95 can you please backport this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants