Make filters "open" by default then hide in mobile apps
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user