mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 22:38:09 +08:00
FIX: ensures category row is not focusable (#29803)
This commit is contained in:
parent
79ffbe7cd5
commit
55a074e4c3
@ -106,7 +106,7 @@ export default class CategoryRow extends Component {
|
||||
get badgeForCategory() {
|
||||
return htmlSafe(
|
||||
categoryBadgeHTML(this.category, {
|
||||
link: this.categoryLink,
|
||||
link: false,
|
||||
allowUncategorized:
|
||||
this.allowUncategorizedTopics || this.allowUncategorized,
|
||||
hideParent: !!this.parentCategory,
|
||||
@ -122,7 +122,7 @@ export default class CategoryRow extends Component {
|
||||
get badgeForParentCategory() {
|
||||
return htmlSafe(
|
||||
categoryBadgeHTML(this.parentCategory, {
|
||||
link: this.categoryLink,
|
||||
link: false,
|
||||
allowUncategorized:
|
||||
this.allowUncategorizedTopics || this.allowUncategorized,
|
||||
recursive: true,
|
||||
@ -285,7 +285,7 @@ export default class CategoryRow extends Component {
|
||||
{{on "click" this.handleClick}}
|
||||
{{on "keydown" this.handleKeyDown}}
|
||||
aria-checked={{this.isSelected}}
|
||||
tabindex="0"
|
||||
tabindex="-1"
|
||||
>
|
||||
|
||||
{{#if this.category}}
|
||||
|
@ -10,7 +10,7 @@ export default class NoneCategoryRow extends CategoryRowComponent {
|
||||
badgeForCategory(category) {
|
||||
return htmlSafe(
|
||||
categoryBadgeHTML(category, {
|
||||
link: this.categoryLink,
|
||||
link: false,
|
||||
allowUncategorized: true,
|
||||
hideParent: true,
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user