Skip to content

Support popup for react v16 #75

Open
@stenin-nikita

Description

@stenin-nikita
  • react version: 16.2.0
  • react-dom version: 16.2.0
  • bem-react-components version: master

Description:

When popup is rendered, the value of this._domNode is null. An error occurs here.

Uncaught TypeError: Cannot read property 'offsetWidth' of null (Popup_target.js:105)

This is most likely due to the fact that the render method in Portal-Popup returns null. Removing the method should solve the problem. Alternatively, you can use ReactDom.createPortal for react 16.

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