From bc979a3615e893fa6ea044da47b3fcb102687fb8 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 9 Jan 2022 15:17:03 +0100 Subject: [PATCH] Use proper event for global event handlers in answerbox --- app/javascript/packs/application.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/packs/application.ts b/app/javascript/packs/application.ts index ebabaa44..75ec820e 100644 --- a/app/javascript/packs/application.ts +++ b/app/javascript/packs/application.ts @@ -11,7 +11,7 @@ import initQuestion from 'retrospring/features/question'; import initModeration from 'retrospring/features/moderation'; start(); -document.addEventListener('turbolinks:load', initAnswerbox); +document.addEventListener('DOMContentLoaded', initAnswerbox); document.addEventListener('DOMContentLoaded', initInbox); document.addEventListener('DOMContentLoaded', initUser); document.addEventListener('turbolinks:load', initSettings);