Closed davidalejandroaguilar closed 20 hours ago
Related: https://github.com/orgs/phlex-ruby/discussions/785
This is the intended behavior in 2.x, so you should use id: "my_id"
.
Ahhh thanks @stephannv, forgot about discussions!
Going to close this now then.
Description
When passing attributes with underscores using symbols, such as
id: :my_id
, they are converted toid="my-id"
on the resulting HTML.The expected behavior is that they retain the underscore, e.g.
id="my_id"
.Version
This is happening on
2.0.0.rc1
.Reproduction
script.rb
Run via:
Output: