app/components/satis/dropdown/component_controller.js in satis-2.1.24 vs app/components/satis/dropdown/component_controller.js in satis-2.1.26

- old
+ new

@@ -889,12 +889,12 @@ validateSearchQuery() { const trimmedValue = this.searchInputTarget.value.trim(); const elements = this.selectedItemsTemplateTarget.content.querySelectorAll(`[data-satis-dropdown-item-text*="${trimmedValue}"]`); const selected = Array.from(elements).find(element => element.getAttribute('data-satis-dropdown-item-text').trim() === trimmedValue); if (!selected && this.searchInputTarget.value.length > 0 && !this.freeTextValue) { - this.searchInputTarget.closest(".bg-white").classList.toggle("warning", true) + this.searchInputTarget.closest(".sts-dropdown").classList.toggle("warning", true) } else { - this.searchInputTarget.closest(".bg-white").classList.toggle("warning", false) + this.searchInputTarget.closest(".sts-dropdown").classList.toggle("warning", false) } } // clear search input and hide results resetSearchInput(event) {