From 37330422a3011e285a34db790c1d4fedc7cadb1a Mon Sep 17 00:00:00 2001 From: stephann <3025661+stephannv@users.noreply.github.com> Date: Tue, 25 Mar 2025 15:12:39 -0300 Subject: [PATCH] Fix combobox problems --- lib/ruby_ui/combobox/combobox_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ruby_ui/combobox/combobox_controller.js b/lib/ruby_ui/combobox/combobox_controller.js index 0dd4531a..7e233164 100644 --- a/lib/ruby_ui/combobox/combobox_controller.js +++ b/lib/ruby_ui/combobox/combobox_controller.js @@ -25,7 +25,7 @@ export default class extends Controller { } disconnect() { - this.cleanup(); + if (this.cleanup) { this.cleanup() } } inputChanged(e) { @@ -41,7 +41,7 @@ export default class extends Controller { } inputContent(input) { - return input.dataset.text || input.parentElement.innerText + return input.dataset.text || input.parentElement.textContent } toggleAllItems() {