From 70825d3425d3b83c2c72cc84899a56154eb82408 Mon Sep 17 00:00:00 2001 From: Harry Adel Date: Sat, 24 Jan 2026 02:38:25 +0200 Subject: [PATCH] List on body for global onRendered --- client/lib/autofocus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/autofocus.js b/client/lib/autofocus.js index 2c6dab034..93bdb3c63 100644 --- a/client/lib/autofocus.js +++ b/client/lib/autofocus.js @@ -3,7 +3,7 @@ import { Template } from 'meteor/templating'; import { Tracker } from 'meteor/tracker'; -Template.onRendered(function() { +Template.body.onRendered(function() { Tracker.afterFlush(() => { const el = this.find('[autofocus]'); if (el && typeof el.focus === 'function') {