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

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

Closed
lightwave opened this issue Feb 13, 2023 · 4 comments
Closed
Labels
answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response

Comments

@lightwave
Copy link

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.

@cee-chen
Copy link
Contributor

cee-chen commented Feb 13, 2023

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

@lightwave
Copy link
Author

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

@cee-chen
Copy link
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!

@cee-chen cee-chen added the answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response label Feb 13, 2023
@addonion
Copy link

@cee-chen I'm using EUI 95 and that problem don't fixed.

New react compiler require Strict mode
https://react.dev/learn/react-compiler#checking-compatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response
Projects
None yet
Development

No branches or pull requests

3 participants