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

Fix backdrop for dropdown menu on mobile #21578

Merged
merged 6 commits into from
Mar 19, 2017

Conversation

pvdlg
Copy link
Contributor

@pvdlg pvdlg commented Jan 6, 2017

Fixes #21572

Fix the backdrop for dropdown menu on mobile:

  • Create backdrop only if the menu is actually open (do not create it if
    the show event is prevented)
  • Drop the backdrop only when the corresponding menu is closed (do not
    remove if there is no menu to close or if the hide event is prevented)
  • Drop only the backdrop associated with the dropdown that is being closed

Create backdrop only if the menu is actually open (do not create it if
the show event is prevented)
Drop the backdrop only when the corresponding menu is closed (do not
remove if there is no menu to close or if the hide event is prevented)
@mdo
Copy link
Member

mdo commented Jan 6, 2017

Can you apply these changes to the js/src/ file instead?

pvdlg added 3 commits January 6, 2017 17:06
Create backdrop only if the menu is actually open (do not create it if
the show event is prevented)
Drop the backdrop only when the corresponding menu is closed (do not
remove if there is no menu to close or if the hide event is prevented)
@pvdlg
Copy link
Contributor Author

pvdlg commented Jan 6, 2017

Ooops my bad. Done !

@mdo mdo added this to the v4.0.0-beta milestone Jan 6, 2017
@mdo mdo merged commit f2f8051 into twbs:v4-dev Mar 19, 2017
@mdo mdo mentioned this pull request Mar 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants