Merge branch 'develop' into textTool

This commit is contained in:
DD 2018-03-20 14:16:47 -04:00
commit cbd2a89cd0

View file

@ -145,8 +145,9 @@ class PaintEditor extends React.Component {
this.setState({canvas: canvas});
this.canvas = canvas;
}
onMouseDown () {
if (document.activeElement instanceof HTMLInputElement) {
onMouseDown (event) {
if (event.target === paper.view.element &&
document.activeElement instanceof HTMLInputElement) {
document.activeElement.blur();
}