You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use lots of tables and I've written some cool Stimulus controllers to handle a lot of the inline edit/update/destroy that I need, but I wanted to move to Hotwire instead of trying to maintain my own.
You can re-create exactly this by running rails new ... and on a scaffolded index page try wrapping the table in the turbo_frame_tag around the basic table provided and it will NOT render the frame around the table body or within the <table> tag.
Nothing I do changes this. Is this on purpose? This seems like extremely odd behavior, but hey if I missed something please let me know! :)
Otherwise I may dive into this and make a PR. I'd love a chance to contribute! Especially since I was already building something very similar on my own projects.
The text was updated successfully, but these errors were encountered:
I use lots of tables and I've written some cool Stimulus controllers to handle a lot of the inline edit/update/destroy that I need, but I wanted to move to Hotwire instead of trying to maintain my own.
So I found out really quickly if you try:
The turbo frame will render OUTSIDE of and BEFORE the
<tbody>
tag, like this:You can re-create exactly this by running
rails new ...
and on a scaffolded index page try wrapping the table in the turbo_frame_tag around the basic table provided and it will NOT render the frame around the table body or within the<table>
tag.Nothing I do changes this. Is this on purpose? This seems like extremely odd behavior, but hey if I missed something please let me know! :)
Otherwise I may dive into this and make a PR. I'd love a chance to contribute! Especially since I was already building something very similar on my own projects.
The text was updated successfully, but these errors were encountered: