Skip to content

Commit

Permalink
ignore click event in document selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Feb 9, 2015
1 parent c7f7446 commit adada05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/scripts/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ var Item = React.createClass({

var ItemBody = React.createClass({
handleClick: function() {
if ( this.state.expanded && window.getSelection().toString() != "" ) {
return;
}
this.setState({ expanded: !this.state.expanded })
},
getInitialState: function() {
Expand Down

0 comments on commit adada05

Please sign in to comment.