mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-25 07:54:44 +00:00
adding-data-attribute-for-hidden-textarea (#4022)
This commit is contained in:
parent
da9161e48f
commit
5de811f098
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
|
|||
this.hiddenTextarea.setAttribute('autocorrect', 'off');
|
||||
this.hiddenTextarea.setAttribute('autocomplete', 'off');
|
||||
this.hiddenTextarea.setAttribute('spellcheck', 'false');
|
||||
this.hiddenTextarea.setAttribute('data-fabric-hiddentextarea', '');
|
||||
|
||||
var style = this._calcTextareaPosition();
|
||||
this.hiddenTextarea.style.cssText = 'white-space: nowrap; position: absolute; top: ' + style.top +
|
||||
|
|
|
|||
Loading…
Reference in a new issue