Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Uncaught TypeError: Cannot read property 'className' of null #1015
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed Jul 13, 2017
1 parent dcdf454 commit 4ded3a2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,11 @@ class Table extends Component {

handleClickOutside = (event) => {
const { showIncludedViewOnSelect } = this.props;
if(event.target.parentNode !== document &&
!event.target.parentNode.className.includes('notification')) {
if(
event.target.parentNode !== document &&
(event.target.parentNode &&
!event.target.parentNode.className.includes('notification'))
) {
const item = event.path;
if(item) {
for(let i = 0; i < item.length; i++){
Expand Down

0 comments on commit 4ded3a2

Please sign in to comment.