From eb1c3bc29321885e558bf0fce026f0af2dbe4d7b Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Wed, 19 Oct 2022 18:39:54 +0000 Subject: [PATCH] recent_topics: Check if at last row before moving down. This looks a regression from some of the recent additions to recent topics. --- static/js/recent_topics_ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/recent_topics_ui.js b/static/js/recent_topics_ui.js index e00ca00c77..6a902425c7 100644 --- a/static/js/recent_topics_ui.js +++ b/static/js/recent_topics_ui.js @@ -863,8 +863,10 @@ function up_arrow_navigation(row, col) { } function down_arrow_navigation(row, col) { + if (is_focus_at_last_table_row()) { + return; + } const type = get_row_type(row); - if (type === "stream" && col === 2 && !has_unread(row + 1)) { col_focus = 1; }