You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I transferred this issue here, where it'll be resolved.
I was able to narrow down the root cause in the underlying state machine
segunadebayo
changed the title
Drawer closing on button tap when the onClick triggers a content change
[Mobile] dialog closing on button tap when the onClick triggers a content change
Nov 21, 2024
Description
When I tap (touchscreen) on a button inside DrawerBody that changes the contents of the DrawerBody so that the button unmounts, it closes the modal.
This however works fine if you click with a mouse.
Replication is on the stackblitz link provided. Tap on the button inside the modal to replicate.
A temporary workaround for myself is to add a 1ms timeout before you setState.
Link to Reproduction
https://stackblitz.com/edit/chakra-ui-v3-1cdfym?file=src%2FApp.tsx
Steps to reproduce
Chakra UI Version
3.1.0
Browser
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: