Merge pull request #2490 from basecamp/fix-hidden-filters-in-firefox

Fix hidden filters in Firefox
This commit is contained in:
Adrien Maston
2026-02-06 11:01:54 +01:00
committed by GitHub
2 changed files with 2 additions and 3 deletions
@@ -9,8 +9,6 @@ export default class extends Controller {
static values = { autoExpandSelector: String }
connect() {
if (this.hasAutoExpandSelectorValue && this.element.querySelector(this.autoExpandSelectorValue)) {
this.element.open = true
}
this.element.open = this.hasAutoExpandSelectorValue && this.element.querySelector(this.autoExpandSelectorValue)
}
}
+1
View File
@@ -1,4 +1,5 @@
<%= tag.details class: "expandable-on-native",
open: true,
data: {
controller: "expandable-on-native",
expandable_on_native_auto_expand_selector_value: "[data-filter-show=true]" } do %>