Skip to content

Unable to get property 'contains' of undefined or null reference #17

@gitlukasz

Description

@gitlukasz

Issue description
Our application consists of 2 screens:

  • landing page with list of items
  • item details page - has form fields (including react-selectrix component) and OK button to go back to landing page
    When OK button is clicked we go back to the landing page and the items details page disappears.
    In IE11 we can see an error message in the console: "Unable to get property 'contains' of undefined or null reference".

Additional details:
The error comes from handleBodyClick method in the App class. Probably the handler is executed after items detail page (and react selectrix-component) disappears from DOM. I think that additional check is required to ensure that this.ref points valid DOM element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions