eufemia
eufemia copied to clipboard
bug(Modal) Manual trigger with `openState` glitches in StrictMode
🐛 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:
- Setup a modal, dialog or drawer component to be triggered by state, as described in this demo in the Eufemia documentation.
- Make sure you're using React in StrictMode.
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