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 authored Mar 3, 2017
1 parent 211edec commit 7733dea
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 7733dea

Please sign in to comment.