Update forms.js

fixes #2519
This commit is contained in:
Jascha Urbach 2022-12-18 22:28:05 +01:00
parent 89478ac87e
commit 64968c3081
No known key found for this signature in database
GPG key ID: A43A844B114F9B08

View file

@ -46,4 +46,10 @@
document
.querySelectorAll("[data-remove]")
.forEach((node) => node.addEventListener("click", removeInput));
document.getElementById("id_description").addEventListener("keypress", function (event) {
if (event.keyCode == 13) {
event.preventDefault();
}
});
})();