Skip to content

Commit

Permalink
#148 always deselect all control buttons if some is selected on "A" p…
Browse files Browse the repository at this point in the history
…ress
  • Loading branch information
matej-vavrek authored and tibor-postek-m2ms committed Mar 10, 2020
1 parent 8f28d96 commit dda4e78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/components/preview/molecule/moleculeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ const MoleculeView = memo(({ imageHeight, imageWidth, data }) => {
}
)}
onClick={() => {
selectedAll.current = !selectedAll.current;
// always deselect all if are selected only some of options
selectedAll.current = hasSomeValuesOn ? false : !selectedAll.current;

onLigand(true);
onComplex(true);
Expand Down

0 comments on commit dda4e78

Please sign in to comment.