diff --git a/app/components/searchable_dropdown_component.rb b/app/components/searchable_dropdown_component.rb index c6a6852edf..67a785edaf 100644 --- a/app/components/searchable_dropdown_component.rb +++ b/app/components/searchable_dropdown_component.rb @@ -46,7 +46,8 @@ class SearchableDropdownComponent < ViewComponent::Base end def tom_select_options_value - plugins = ['virtual_scroll'] + plugins = [] + plugins << 'virtual_scroll' if @remote_url.present? plugins << 'dropdown_input' unless remove_search_plugin? plugins << 'remove_button' if multiple