Skip to content

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

@s-utstrand

Description

@s-utstrand

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions