Fix editing a textarea is not possible because of click handler

This commit is contained in:
Hadi Nategh 2019-04-15 12:35:34 +02:00
parent 36ca3dd024
commit c52ef308d3

View File

@ -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);