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"); }