mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-14 00:33:09 +00:00
Refocus textarea on mouseout from canvas (#3759)
* add focus on moouse out * fix mouse out lost focus
This commit is contained in:
parent
b0260640b9
commit
05f959a627
1 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue