Skip to content

Commit

Permalink
Refocus textarea on mouseout from canvas (#3759)
Browse files Browse the repository at this point in the history
* add focus on moouse out

* fix mouse out lost focus
  • Loading branch information
asturur committed Mar 14, 2017
1 parent b026064 commit 05f959a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mixins/canvas_events.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@
this.fire('mouse:out', { target: target, e: e });
this._hoveredTarget = null;
target && target.fire('mouseout', { e: e });
if (this._iTextInstances) {
this._iTextInstances.forEach(function(obj) {
if (obj.isEditing) {
obj.hiddenTextarea.focus();
}
});
}
},

/**
Expand Down

0 comments on commit 05f959a

Please sign in to comment.