eufemia icon indicating copy to clipboard operation
eufemia copied to clipboard

bug(Modal) Manual trigger with `openState` glitches in StrictMode

Open s-utstrand opened this issue 10 months ago • 0 comments

🐛 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

s-utstrand avatar Apr 09 '24 13:04 s-utstrand