diff --git a/admin/themes/default/js/batchManagerGlobal.js b/admin/themes/default/js/batchManagerGlobal.js index 199235865..3b8d5eb09 100644 --- a/admin/themes/default/js/batchManagerGlobal.js +++ b/admin/themes/default/js/batchManagerGlobal.js @@ -226,7 +226,9 @@ function selectDelDerivNone() { // Trigger action click on pressing enter and if the value of applyAction is not equal to -1 $(window).on('keypress', function(e) { - if (e.key === "Enter" && $("select[name='selectAction']").val() != -1) { + const selected = $("select[name='selectAction']").val(); + const haveTextarea = $(`#action_${selected} textarea`).length; + if (e.key === "Enter" && selected != -1 && !haveTextarea) { e.preventDefault(); $('#applyAction').trigger('click'); }