Skip to content

Commit 46baf0b

Browse files
committed
hides the toggle all input when using the filter
1 parent 3eae4a1 commit 46baf0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ruby_ui/combobox/combobox_controller.js

+2
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ export default class extends Controller {
9393

9494
if (text.indexOf(filterTerm) > -1) {
9595
input.parentElement.classList.remove("hidden")
96+
this.toggleTarget.parentElement.classList.remove("hidden")
9697
resultCount++
9798
} else {
9899
input.parentElement.classList.add("hidden")
100+
this.toggleTarget.parentElement.classList.add("hidden")
99101
}
100102
})
101103

0 commit comments

Comments
 (0)