Skip to content

Commit 059c0e7

Browse files
authored
Fix combobox problems (#241)
1 parent 3c80b58 commit 059c0e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ruby_ui/combobox/combobox_controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class extends Controller {
2525
}
2626

2727
disconnect() {
28-
this.cleanup();
28+
if (this.cleanup) { this.cleanup() }
2929
}
3030

3131
inputChanged(e) {
@@ -41,7 +41,7 @@ export default class extends Controller {
4141
}
4242

4343
inputContent(input) {
44-
return input.dataset.text || input.parentElement.innerText
44+
return input.dataset.text || input.parentElement.textContent
4545
}
4646

4747
toggleAllItems() {

0 commit comments

Comments
 (0)