Merge pull request #1138 from GordoRank/Only-add-hidden-textarea-when-in-editing-mode

Fix object onClick (previously failed change)
This commit is contained in:
Juriy Zaytsev 2014-02-04 08:16:59 -08:00
commit 0584d94a5c

View file

@ -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();
},
/**