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

Commit

Permalink
Merge pull request #367 from metasfresh/dev-259
Browse files Browse the repository at this point in the history
Fix grid view selection lost #259
  • Loading branch information
damianprzygodzki authored Feb 20, 2017
2 parents 09de9db + 4a44b5f commit fe4a4b8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,16 @@ class Table extends Component {
}

handleClickOutside = (event) => {
const item = event.path;
for(let i = 0; i < item.length; i++){
if(item[i].classList && item[i].classList.contains('js-not-unselect')){
return;
if(event.target.parentNode !== document) {
const item = event.path;
for(let i = 0; i < item.length; i++){
if(item[i].classList && item[i].classList.contains('js-not-unselect')){
return;
}
}
}

this.deselectAllProducts();
this.deselectAllProducts();
}
}

handleKeyDown = (e) => {
Expand Down

0 comments on commit fe4a4b8

Please sign in to comment.