Skip to content

Popover and ContextMenu do not support react 18 #5859

Closed

Description

@botlikes456

Hi, I'm using react 18.1.0, and found that popover and context menu cannot show at react 18. when I back to react 17.0.2, it works.

Activity

  1. added
    ⚠️ needs validation
    on May 2, 2022
  2. thompsongl commented on May 2, 2022

    @thompsongl
    Contributor

    Related to #5774. We don't have a timeline yet for enabling support for React 18.

  3. botlikes456 commented on May 3, 2022

    @botlikes456
    Author

    Related to #5774. We don't have a timeline yet for enabling support for React 18.

    Got, thanks. Guess it is led by portal?

  4. zerosym commented on May 10, 2022

    @zerosym

    At least with Next and React 18 I found that having strict mode enabled is what prevents popovers, tooltips, menus, etc. from showing.

  5. ycanardeau commented on Jul 6, 2022

    @ycanardeau

    From the official documentation of React:

    If your app doesn’t work after upgrading, check whether it’s wrapped in <StrictMode>. Strict Mode has gotten stricter in React 18, and not all your components may be resilient to the new checks it adds in development mode. If removing Strict Mode fixes your app, you can remove it during the upgrade, and then add it back (either at the top or for a part of the tree) after you fix the issues that it’s pointing out.

  6. added and removed
    ⚠️ needs validation
    on Aug 25, 2022
  7. chandlerprall commented on Aug 25, 2022

    @chandlerprall
    Contributor

    Confirmed that the components mentioned have issues in React 18 projects with StrictMode. Many of them have (less apparent) issues with StrictMode in React 17, but there's something in 18 that makes them completely fall over (we should fix the issues with 17, too). I'm going to create new issues for each of these components for better tracking, and close this one.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions