commit 3a705c8eb55737ad7aecc7ccfc534d898dfe7012
parent d6a68a32f07f3a2bdc31281613a045b985b7b060
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Tue, 22 Oct 2024 13:07:15 +0200
fix: add event listener to newly created input fields
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/assets/js/yt.js b/assets/js/yt.js
@@ -92,7 +92,7 @@ function yt2html_add_channels_input(index) {
input.name = "channel_" + index;
input.classList.add("channels_input");
input.type = "text";
- input.oninput = "yt2html_update_channels_list();";
+ input.addEventListener("input", yt2html_update_channels_list);
// Append label and input objects
document.getElementById("channels_list").append(label);