mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 23:02:45 +08:00
FIX: Missing glimmer topic list focus actions on mobile (#29421)
Some checks are pending
Licenses / run (push) Waiting to run
Linting / run (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (frontend, themes) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, chat) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, plugins) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, themes) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (annotations, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (backend, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (backend, plugins) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (frontend, plugins) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Chrome) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Firefox ESR) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Firefox Evergreen) (push) Waiting to run
Some checks are pending
Licenses / run (push) Waiting to run
Linting / run (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (frontend, themes) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, chat) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, plugins) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (system, themes) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (annotations, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (backend, core) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (backend, plugins) (push) Waiting to run
Tests / ${{ matrix.target }} ${{ matrix.build_type }} (frontend, plugins) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Chrome) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Firefox ESR) (push) Waiting to run
Tests / core frontend (${{ matrix.browser }}) (Firefox Evergreen) (push) Waiting to run
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
Block a user