From c52ef308d345709b05ab1cff342ddbcb7345f6be Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 15 Apr 2019 12:35:34 +0200 Subject: [PATCH] Fix editing a textarea is not possible because of click handler --- api/js/etemplate/et2_core_editableWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_core_editableWidget.js b/api/js/etemplate/et2_core_editableWidget.js index 7d0a2c386b..672bc6033c 100644 --- a/api/js/etemplate/et2_core_editableWidget.js +++ b/api/js/etemplate/et2_core_editableWidget.js @@ -116,7 +116,7 @@ var et2_editableWidget = (function(){ "use strict"; return et2_inputWidget.exten jQuery('body').on("click.et2_editableWidget", this, function(e) { // Make sure click comes from body, not a popup - if(jQuery.contains(this, e.target)) + if(jQuery.contains(this, e.target) && e.target.type != 'textarea') { jQuery(this).off("click.et2_editableWidget"); e.data.focusout.call(e.data, this);