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

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

Open
gitlukasz opened this issue Oct 30, 2018 · 1 comment
Open

Comments

@gitlukasz
Copy link

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.

@stratos-vetsos
Copy link
Owner

Hi, thanks for spotting this.
I will test and release a new version as soon as possible.

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants