How can I prevent window focus from changing when Meteor reactive template changes from data subscription changes?

I have a long page. It contains links to templates, some of which display data.

One of the templates on the page is subscribed to a collection. When the collection changes view in this template, it displays the items that have been added or changed. It does this pretty well and doesn't reload the page.

The problem is that the focus of the page goes to such a pattern when the data is rendered. The data displayed by the template is updated by other users and the server. Thus, the user may not be able to view this part of the page when it displays incoming data and changes.

If the user reads data beyond the page when this template displays data, the screen focus returns to the area of ​​the reactive page template where the data is displayed. This is very annoying.

How can I prevent the screen from focusing on the area that is displaying data on a long page?

+2


source to share


1 answer


Meteor does not support the "autofocus" attribute at the moment. If you want to focus on page loading, you need to do it explicitly.



0


source







All Articles