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

bug(Modal) Manual trigger with openState glitches in StrictMode #3451

Open
s-utstrand opened this issue Apr 9, 2024 · 0 comments
Open

bug(Modal) Manual trigger with openState glitches in StrictMode #3451

s-utstrand opened this issue Apr 9, 2024 · 0 comments

Comments

@s-utstrand
Copy link

🐛 Bug Report

When using state to trigger a modal, dialog or drawer in strict mode, the modal immediately closes when trying to open it. When disabling strict mode, everything behaves as expected.

To Reproduce

Steps to reproduce the behavior:

  1. Setup a modal, dialog or drawer component to be triggered by state, as described in this demo in the Eufemia documentation.
  2. Make sure you're using React in StrictMode.

See demo in this codesandbox

Expected behavior

The modal should open when triggering it through state, and stay open until you close the modal.

Run npx envinfo

Not relevant. Se codesandbox demo

Eufemia Version

10.26.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant