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(dropdown): add focus trap option that allows close on click #1126

Merged
merged 1 commit into from
Jan 4, 2019

Conversation

ibolton336
Copy link
Member

What:
fixes #1113 and #1125

Additional issues:

@ibolton336 ibolton336 added bug 🐛 PF4 React issues for the PF4 core effort labels Jan 3, 2019
@coveralls
Copy link

coveralls commented Jan 3, 2019

Pull Request Test Coverage Report for Build 3781

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 81.33%

Totals Coverage Status
Change from base Build 3778: 0.0%
Covered Lines: 4359
Relevant Lines: 5054

💛 - Coveralls

@patternfly-build
Copy link
Contributor

PatternFly-React preview: https://1126-pr-patternfly-react-patternfly.surge.sh

Copy link
Collaborator

@jschuler jschuler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems package-lock.json should not have changed?

dlabaj
dlabaj previously approved these changes Jan 3, 2019
@jgiardino
Copy link
Collaborator

Thanks for looking into this, @ibolton336! @kmcfaul Has a similar update in #1014. I posted feedback in that PR when I reviewed her updates using different interaction methods.

Just to double-check, I also reviewed the preview for this PR. I'm getting the same results in both PRs for touch interaction:

  • Testing on an iOS device, I can touch the toggle and collapse the menu. But touching anywhere outside the dropdown toggle or menu does not collapse the menu. Whereas with a mouse, I am able to click anywhere outside the toggle and menu to collapse the menu.

@ibolton336
Copy link
Member Author

ibolton336 commented Jan 3, 2019

Thanks @jgiardino - do you think it would make sense to open a separate issue for handling the mobile bug for the dropdown not closing when touching outside of the dropdown focus?

kmcfaul
kmcfaul previously approved these changes Jan 4, 2019
Copy link
Contributor

@kmcfaul kmcfaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix is in PR #1014, but as it is undergoing edits for some unrelated fixes bundled with this one, I think this PR should be merged to get the fix out asap.

@jgiardino
Copy link
Collaborator

@kmcfaul That sounds good to me. Also, @ibolton336 raised the question of whether the issue with handling touch events on mobile should be a separate issue. It's currently noted in the issue you're working on for PR #1014, but I'm curious if you have thoughts on separating that out.

@jschuler jschuler merged commit 2878615 into master Jan 4, 2019
@ibolton336 ibolton336 deleted the fix-dropdown branch January 4, 2019 20:39
@ibolton336
Copy link
Member Author

created #1131 to deal with the touch issues @jgiardino @kmcfaul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PF4 React issues for the PF4 core effort
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PF4 Dropdown close broken
7 participants