Skip to content

Modal.setAppElement() has no effect #107

@evoyy

Description

@evoyy

The modal is always mounted to document.body, whether setAppElement() is called or not:

  componentDidMount: function() {
    this.node = document.createElement('div');
    this.node.className = 'ReactModalPortal';
    document.body.appendChild(this.node);
    this.renderPortal(this.props);
  },

https://github.com/rackt/react-modal/blob/master/lib/components/Modal.js#L43-L48

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