Skip to content

Portal widget (EuiBottomBar, EuiPopover etc) does not work in Vite dev mode #6596

Closed

Description

@lightwave

Recently migrated my CRA app using eui to Vite and noticed that any components that use portal doesn't show up at all when running in dev mode. I've created a CodeSandbox to show that.

https://codesandbox.io/p/sandbox/elastic-ui-problems-in-vite-react-ts-c9k6x4

I can't find any reported issue related to the problem I'm seeing. Unfortunately, I know too little about how portal works in React to be helpful.

Activity

  1. cee-chen commented on Feb 13, 2023

    @cee-chen
    Contributor

    Are you using React 18? If so, try turning off strict mode: #6179

  2. lightwave commented on Feb 13, 2023

    @lightwave
    Author

    Yes, it's running in StrictMode. Removing StrictMode at the top "fix" it. Is there effort in fixing this properly?

  3. cee-chen commented on Feb 13, 2023

    @cee-chen
    Contributor

    #6182

    Getting EUI working fully w/ React 18 + strict mode is on our roadmap for 2023. No promises as to a concrete timeline, but definitely on our radar. Going to go ahead and close this issue as there are already open issues around this, but feel free to +1 the existing issues!

  4. added
    answered
    on Feb 13, 2023
  5. addonion commented on Aug 22, 2024

    @addonion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    answered

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions