bottom.js gets executed again when u make a new comment

pull/143/head
Aevann 2023-04-29 17:52:50 +02:00
parent 615800ca6d
commit 2647019dc9
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ function register_new_elements(e) {
const onclick = e.querySelectorAll('[data-onclick]');
for (const element of onclick) {
element.addEventListener("click", () => {execute(element, 'onclick')});
element.onclick = () => {execute(element, 'onclick')};
}
const textareas = e.getElementsByTagName('textarea')