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
|
@action
|
||||||
onTitleFocus(event) {
|
onTitleFocus(event) {
|
||||||
event.target.classList.add("selected");
|
event.target.closest(".topic-list-item").classList.add("selected");
|
||||||
}
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
onTitleBlur(event) {
|
onTitleBlur(event) {
|
||||||
event.target.classList.remove("selected");
|
event.target.closest(".topic-list-item").classList.remove("selected");
|
||||||
}
|
}
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -93,6 +93,16 @@ export default class TopicListItem extends Component {
|
||||||
element.classList.add("highlighted");
|
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
|
@action
|
||||||
applyTitleDecorators(element) {
|
applyTitleDecorators(element) {
|
||||||
const rawTopicLink = element.querySelector(".raw-topic-link");
|
const rawTopicLink = element.querySelector(".raw-topic-link");
|
||||||
|
|
Loading…
Reference in New Issue