Skip to content

Commit

Permalink
[#2888] Fix on pageload filters
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Jan 16, 2025
1 parent 14a0f51 commit f6d93f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/open_inwoner/js/components/FilterBar/filterbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class FilterBar {
// Ensure the correct state is applied on page load
setTimeout(() => {
this.updateFilterBarState()
}, 50) // Delay ensures HTMX content is fully loaded
}, 100)
}

toggleOpenFilterPopup(event) {
Expand Down Expand Up @@ -90,11 +90,11 @@ export class FilterBar {
)

if (anyChecked) {
this.selectionFilterBar.classList.add('active-filter')
this.selectionFilterBar.classList.remove('inactive-filter')
this.selectionFilterBar.classList.add('active')
this.selectionFilterBar.classList.remove('inactive')
} else {
this.selectionFilterBar.classList.remove('active-filter')
this.selectionFilterBar.classList.add('inactive-filter')
this.selectionFilterBar.classList.remove('active')
this.selectionFilterBar.classList.add('inactive')
}
}

Expand Down

0 comments on commit f6d93f5

Please sign in to comment.