mirror of
https://github.com/wekan/wekan.git
synced 2026-01-24 10:16:09 +01:00
Merge pull request #6096 from harryadel/fix-autofocus
List on body for global onRendered
This commit is contained in:
commit
537ad1eff3
1 changed files with 1 additions and 1 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue