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(UncontrolledCollapse): collapsing on mobile (#1034) #1043

Merged

Conversation

illiteratewriter
Copy link
Member

fixed bug where uncontrolled collapse was not collapsing in mobile

fixed bug where uncontrolled collapse was not collapsing in mobile
Copy link
Collaborator

@supergibbs supergibbs left a comment

Choose a reason for hiding this comment

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

LGTM if this is fixing the issue, I didn't test it

@illiteratewriter
Copy link
Member Author

The issue was both touch handler and click handler was being called, causing it to toggle twice, and make it initial state itself. This now prevents click on mobile.

Copy link
Member

@TheSharpieOne TheSharpieOne left a comment

Choose a reason for hiding this comment

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

I tested it out with chrome's emulator, it works. One thing I did notice is that it will toggle when the click/touch starts vs the others happen when the click/touch ends. We can change it from touchstart to touchend to fix that... but idk how it will act on a real device.

@TheSharpieOne TheSharpieOne merged commit dcc1dda into reactstrap:master May 29, 2018
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

3 participants