Refocus textarea on mouseout from canvas (#3759)

* add focus on moouse out

* fix mouse out lost focus
This commit is contained in:
Andrea Bogazzi 2017-03-03 14:33:46 +01:00 committed by Asturur
parent b0260640b9
commit 05f959a627

View file

@ -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();
}
});
}
},
/**