adding-data-attribute-for-hidden-textarea (#4022)

This commit is contained in:
Roger Beaman 2017-06-20 12:47:11 -04:00 committed by Andrea Bogazzi
parent da9161e48f
commit 5de811f098

View file

@ -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 +