From a1c9486e3ffc65dea1125bff4d29251311c740b8 Mon Sep 17 00:00:00 2001 From: Akshay Birajdar Date: Tue, 29 Oct 2024 15:56:05 +0530 Subject: [PATCH] FIX: Missing glimmer topic list focus actions on mobile (#29421) --- .../discourse/app/components/topic-list/topic-cell.gjs | 4 ++-- .../app/components/topic-list/topic-list-item.gjs | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/topic-list/topic-cell.gjs b/app/assets/javascripts/discourse/app/components/topic-list/topic-cell.gjs index 02ed62475a2..f0f8b067a58 100644 --- a/app/assets/javascripts/discourse/app/components/topic-list/topic-cell.gjs +++ b/app/assets/javascripts/discourse/app/components/topic-list/topic-cell.gjs @@ -40,12 +40,12 @@ export default class TopicCell extends Component { @action onTitleFocus(event) { - event.target.classList.add("selected"); + event.target.closest(".topic-list-item").classList.add("selected"); } @action onTitleBlur(event) { - event.target.classList.remove("selected"); + event.target.closest(".topic-list-item").classList.remove("selected"); }