Replies: 3 comments 2 replies
-
Not yet! But it's something we should have. I'd welcome a PR for this (by anyone reading!), or I'll likely implement this at some point. |
Beta Was this translation helpful? Give feedback.
-
Cross-posting some ideas I've had about this after reviewing @djfpaagman's PR |
Beta Was this translation helpful? Give feedback.
-
@josefarias I did some code digging and thinking and want to propose the following:
So the interface would become: <%= combobox_tag "state", State.all, no_results: "No results found!" %>
<%= combobox_tag "state", State.all, no_results: { partial: "states/no_results" } %>
# etc.. I might code up something to see if this works later, feedback already welcome 😊 |
Beta Was this translation helpful? Give feedback.
-
I have a bunch of async comboboxes of exercises throughout my app and the UX always strikes me as weird that when a user types a word that doesn't match any of the known exercises in the library that it doesn't say anything. Maybe I missed it, but is there any way to display a non-interactive "No results found" HTML in the results area when nothing matches the user's query?
Beta Was this translation helpful? Give feedback.
All reactions