Skip to content

Commit

Permalink
Blocks: Bind onMouseDown instead of onClick to dismiss the selection
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jun 8, 2017
1 parent c8baee4 commit 7606822
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/modes/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class VisualEditor extends Component {
role="region"
aria-label={ __( 'Visual Editor' ) }
className="editor-visual-editor"
onClick={ this.onClick }
onMouseDown={ this.onClick }
onTouchStart={ this.onClick }
ref={ this.bindContainer }
>
<PostTitle />
Expand Down

0 comments on commit 7606822

Please sign in to comment.