Skip to content

[🐞] Modal state doesn't update properly if closed via mobile back button/gesture #1172

@torzchi

Description

@torzchi

Which package is affected?

Headless Kit

Describe the bug

If you try to close the modal through the phone's back button / back gesture, the modal closes but the page remains unresponsive as if the modal is still open.

Reproduction

https://stackblitz.com/edit/qwikui-modal-responsiveness-bug?file=src%2Fapp.jsx

Steps to reproduce

Open the modal on a mobile device.
Press the back button
The modal is closed
No other elements on the page are responsive

System Info

Android

Additional Information

It's the code example shown on https://qwikui.com/docs/headless/modal/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions