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/

@rohit2sharma95 rohit2sharma95 requested a review from a team as a code owner March 23, 2021 19:50
@rohit2sharma95 rohit2sharma95 added this to Inbox in v5.0.0 via automation Mar 23, 2021
v5.0.0 automation moved this from Inbox to Approved Mar 24, 2021
@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.

@XhmikosR XhmikosR added this to Inbox in v4.6.1 via automation Mar 24, 2021
@GeoSot GeoSot moved this from Approved to Inbox in v5.0.0 Mar 24, 2021
@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
v5.0.0 automation moved this from Inbox to Approved 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
v5.0.0 automation moved this from Approved to Done Apr 1, 2021
@XhmikosR XhmikosR deleted the rohit/dropdown-hide-method branch April 1, 2021 18:51
@XhmikosR XhmikosR moved this from Inbox to Needs manual backport in v4.6.1 Apr 1, 2021
@XhmikosR
Copy link
Member

@rohit2sharma95 can you please backport this?

@XhmikosR XhmikosR added this to In progress in v4.6.2 via automation Oct 22, 2021
@XhmikosR XhmikosR moved this from In progress to Needs manual backport in v4.6.2 Oct 22, 2021
@XhmikosR XhmikosR removed this from Needs manual backport in v4.6.1 Oct 26, 2021
@mdo mdo removed this from Needs manual backport in v4.6.2 Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v5.0.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants