From d665ddfe8180c115df036cd82008adbb171bf59b Mon Sep 17 00:00:00 2001 From: GordoRank Date: Tue, 4 Feb 2014 09:44:49 +0000 Subject: [PATCH] Fix object onClick (previously failed change) I'm unsure how but a previous change in this pull request never merged correctly (probably still due to my inexperience with github) Regardless, this tiny patch fixes the bug --- src/mixins/itext_key_behavior.mixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/itext_key_behavior.mixin.js b/src/mixins/itext_key_behavior.mixin.js index d0090656..aadfdaf4 100644 --- a/src/mixins/itext_key_behavior.mixin.js +++ b/src/mixins/itext_key_behavior.mixin.js @@ -46,7 +46,7 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot onClick: function() { // No need to trigger click event here, focus is enough to have the keyboard appear on Android - this.hiddenTextarea.focus(); + this.hiddenTextarea && this.hiddenTextarea.focus(); }, /**