Bug Report: A prefilled html combobox
pedrocarmona opened this issue · 3 comments
Hi @josefarias,
I have encountered a bug while using hotwire_combobox with html in a prefilled form.
Description of the Bug
Render a form, with html options, the input shows actual html tags in the selected value.
Expected Results
I expect the value to be rendered not the html with the value.
Steps to Reproduce the Bug
- Create a record with an association
- Create a form for the record and a combobox with render_in option and an html partial
- Render the view
I have also created a Hotwire Combobox Docs Diff
Demo
demo_bug.mov
Thank you,
Pedro
Hey @pedrocarmona, great catch! Thanks for a well written report, too.
This should be fixed in #43. If you get a sec, could I get you to point your gem to that branch and confirm the fix, please?
Thanks!
Hi @josefarias ,
Thank you for fixing, I confirmed it was fixed, and now I see the expected value should be Amelie
.
(This its also the favorite_movie in the user fixture).

I can't take all the credit, Generative AI did help templating the bug report :)
Thank you very much again!
Generative AI did help templating the bug report
Nice!
Good to hear. I'll merge now and hope to be cutting a new release soon.