From 88ff9bd8d6b5fb635c853791cd29a47f8ff9152c Mon Sep 17 00:00:00 2001 From: Roger Beaman Date: Tue, 20 Jun 2017 12:44:30 -0400 Subject: [PATCH] adding-data-attribute-for-hidden-textarea --- src/mixins/itext_key_behavior.mixin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mixins/itext_key_behavior.mixin.js b/src/mixins/itext_key_behavior.mixin.js index 5a2cc76b2fb..2214e727e5c 100644 --- a/src/mixins/itext_key_behavior.mixin.js +++ b/src/mixins/itext_key_behavior.mixin.js @@ -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 +