Make filters "open" by default then hide in mobile apps

This commit is contained in:
Adrien Maston
2026-02-05 11:12:50 +01:00
parent 14aa95d982
commit 9d4655d35e
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)
}
}