Replies: 3 comments 9 replies
-
Hey @sandrods Can you share the part of your template where you're creating the combobox? I want to see how it's set up. Especially whether it's async. Also, if you could provide a minimal reproduction that'd be super useful. Could be a new rails app with bootstrap set up. Nothing fancy. Just want some broken example to tinker with and fix. EDIT: also, what version of the gem are you using? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello @josefarias. I'll try to create a simple isolated app later, but for now I can tell you this -> I'm using the latest version (0.1.40) -> The combobox is remote, yes # view code
<%= f.combobox :destinatario, combobox_usuarios_path, class: "form-control" %> # controller code
render turbo_stream: helpers.async_combobox_options(
@usuarios,
next_page: @pagy.next,
render_in: {partial: "combobox/usuario", formats: [:html]}
) |
Beta Was this translation helpful? Give feedback.
-
@sandrods yeah these seem like bugs. Went ahead and filed two issues to keep track of them as such. Closing this for now so we can track them separately: |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use a combobox inside a bootstrap modal.
It works correctly the using default rendering.
When specifying
{render_in: partial: ...}
, the list is correctly loaded with the rendered options (with the partial), but on selecting an item, the combobox remains empty (don't display the selection and the value remains nil).Putting the same combobox outside the modal and everything works.
Am I missing something here?
Beta Was this translation helpful? Give feedback.
All reactions