A platform for community discussion. Free, open, simple.
FIX: ensures category row is not focusable (#29803)
Joffrey JAFFEUX55a074e4c3f0
diff --git a/app/assets/javascripts/select-kit/addon/components/category-row.gjs b/app/assets/javascripts/select-kit/addon/components/category-row.gjsindex 1df7fb38508..be6c6e3ef4d 100644--- a/app/assets/javascripts/select-kit/addon/components/category-row.gjs+++ b/app/assets/javascripts/select-kit/addon/components/category-row.gjs@@ -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}}diff --git a/app/assets/javascripts/select-kit/addon/components/none-category-row.js b/app/assets/javascripts/select-kit/addon/components/none-category-row.jsindex 0616febf0ef..5c8a6fd6ff0 100644--- a/app/assets/javascripts/select-kit/addon/components/none-category-row.js+++ b/app/assets/javascripts/select-kit/addon/components/none-category-row.js@@ -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,})