mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 08:27:25 +08:00

Follow-up to eb237e634a
.
Some `{{topic-list}}` instances, like the one for suggested topics, opt out of focusing the row of the last visited topic in the list, but we currently still add listeners for focus/blur events even if when the topic-list instance opts out. This commit adds a check so that we only register focus/blur listeners if the topic-list opts in for last visited topic focus.