We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eae4a1 commit 4c7ba0cCopy full SHA for 4c7ba0c
lib/ruby_ui/combobox/combobox_controller.js
@@ -84,6 +84,12 @@ export default class extends Controller {
84
}
85
86
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
93
let resultCount = 0
94
95
this.selectedItemIndex = null
0 commit comments