diff --git a/src/main/resources/static/js/transactions.js b/src/main/resources/static/js/transactions.js index 44cd193338995f272c8596d6e7d17aacdc639926..6a4803f437f9d76022d80c5b460647410e7c2b7a 100644 --- a/src/main/resources/static/js/transactions.js +++ b/src/main/resources/static/js/transactions.js @@ -142,8 +142,9 @@ $( document ).ready(function() { // prevent form submit on enter (otherwise tag functionality will be hard to use) $(document).on("keypress", 'form', function (e) { + var code = e.keyCode || e.which; - if (code === 13) { + if((code === 13) && e.target.nodeName!=='TEXTAREA') { e.preventDefault(); return false; }