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(TooltipPopoverWrapper) Touch not opening popover on mobile (#1425) #1426

Merged
merged 3 commits into from Mar 20, 2019

Conversation

hsource
Copy link
Contributor

@hsource hsource commented Mar 5, 2019

For Popovers/Tooltips with trigger="click" or trigger="legacy", touches
on mobile were triggering touchstart and then click, which caused them
to open briefly and then immediately close. This removes the
touchstart event handling to fix behaviour on mobile.

#1425

  • Bug fix
  • New feature
  • Chore
  • Breaking change
  • There is an open issue which this change addresses
  • I have read the CONTRIBUTING document.
  • My commits follow the Git Commit Guidelines
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

For Popovers/Tooltips with trigger="click" or trigger="legacy", touches
on mobile were triggering touchstart and then click, which caused them
to open briefly and then immediately close. This removes the
touchstart event handling to fix behaviour on mobile.
@hsource hsource changed the title Fix touch not opening popover on mobile (#1425) fix(TooltipPopoverWrapper) Touch not opening popover on mobile (#1425) Mar 5, 2019
@TheSharpieOne TheSharpieOne merged commit ad2a9a0 into reactstrap:master Mar 20, 2019
michaelmulley pushed a commit to elsevier-research/reactstrap that referenced this pull request Apr 4, 2019
…eactstrap#1426)

For Popovers/Tooltips with trigger="click" or trigger="legacy", touches
on mobile were triggering touchstart and then click, which caused them
to open briefly and then immediately close. This removes the
touchstart event handling to fix behaviour on mobile.
@hsource hsource deleted the fix-mobile-popover-touch branch May 14, 2019 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants