-
Notifications
You must be signed in to change notification settings - Fork 153
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
If the component is open while it's being triggered through a state change the component stops functioning #219
Comments
Edited: to remove the mentions of other issues as I believe you didn't mean to do that but was just using a Confirmed as bug :) |
After a quick look it looks to be that this line of code is the culprit
I've removed and it seems to be working so if you want a quick fix you can fork the repo and edit and use that fork or use something like patch-package. I'm just wanting to do a few more tests before deploying. Best |
@karltaylor Glad I could be of service. Hope it's not to much trouble. I'll wait for an official patch to be released. Thanks for looking into this so quickly. Cheers |
Hi @karltaylor just want to check in on this, will there be a patch in the near future for this issue, or should I just use PatchPackage? 😊 |
+1 has the fix been patch? thanks!! |
Hi @karltaylor is this bug fixed? |
For anyone facing this issue, I found a small workaround in the meantime. You can just manually control the |
Describe the bug
When opening the Collapsible component via a
mouse click
and then triggering the component to open/close via a state change of the parent component by passing through a value via theopen
API the component stop functioning all together.To Reproduce
Accordion #1
(doesn't really matter which one)4a. Click again on the checkbox and nothing will happen to
Accordion #1
4b. Click again on
Accordion #1
and nothing will happenHere's a sandbox already setup with the
https://codesandbox.io/s/dark-star-t2g3ou?file=/src/App.js
Expected behavior
The component should open/close normally
Authors notes
If this is somehow my fault for not fully understanding reacts hooks lifecycle or in general my mistake, but I'm still new to react
The text was updated successfully, but these errors were encountered: