Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4c7ba0c

Browse files
committedFeb 7, 2025·
hides the toggle all input when using the filter
1 parent 3eae4a1 commit 4c7ba0c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎lib/ruby_ui/combobox/combobox_controller.js

+6
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ export default class extends Controller {
8484
}
8585

8686
const filterTerm = this.searchInputTarget.value.toLowerCase()
87+
88+
if (this.hasToggleAllTarget) {
89+
if (filterTerm) this.toggleAllTarget.parentElement.classList.add("hidden")
90+
else this.toggleAllTarget.parentElement.classList.remove("hidden")
91+
}
92+
8793
let resultCount = 0
8894

8995
this.selectedItemIndex = null

0 commit comments

Comments
 (0)
Please sign in to comment.