mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
FIX: Missing glimmer topic list focus actions on mobile (#29421)
This commit is contained in:
parent
a236e368e4
commit
a1c9486e3f
@ -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");
|
||||
}
|
||||
|
||||
<template>
|
||||
|
@ -93,6 +93,16 @@ export default class TopicListItem extends Component {
|
||||
element.classList.add("highlighted");
|
||||
}
|
||||
|
||||
@action
|
||||
onTitleFocus(event) {
|
||||
event.target.closest(".topic-list-item").classList.add("selected");
|
||||
}
|
||||
|
||||
@action
|
||||
onTitleBlur(event) {
|
||||
event.target.closest(".topic-list-item").classList.remove("selected");
|
||||
}
|
||||
|
||||
@action
|
||||
applyTitleDecorators(element) {
|
||||
const rawTopicLink = element.querySelector(".raw-topic-link");
|
||||
|
Loading…
Reference in New Issue
Block a user