josefarias/hotwire_combobox

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.

actual

Expected Results
I expect the value to be rendered not the html with the value.

expected

Steps to Reproduce the Bug

  1. Create a record with an association
  2. Create a form for the record and a combobox with render_in option and an html partial
  3. 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).

Screenshot 2024-02-29 at 00 07 28

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.