-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
render_async in table #12
Comments
This was bugging me too for some time :( Can you please try out the newest version of the gem? It should be working now with the tables. |
The problem is that it creates |
@Postmodum37 thanks for reporting this 🙇 It would really help if you could tell me whether you have jQuery in your project or you're using vanilla JS? |
I am using JQuery, but I don't think that matters because the initial In my case, I was trying to add The two solutions I came up with are:
I've implemented the second solution in my project for now and it seems to work fine, but it's a bit messy. If I will have free time in the future I'll make a pull request with the first solution implemented. It would be a good opportunity to make my first contribution to the open-source project. |
I've released 1.2.0 version of render_async that should allow you to pass in @Postmodum37 can you try it out and see if it's working out for you? |
@nikolalsvk The bug is still there. You can't load HTML this way into a table as I tried explaining before. Here is the basic html table structure: <table>
<thead>
<tr>
<th>
*Here you can load any html tags.*
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
*Here you can load any html tags.*
</td>
</tr>
</tbody>
</table> So going from <tbody>
<div>
<tr>
</tr>
</div>
</tbody> to <tbody>
<tr>
<tr>
</tr>
</tr>
</tbody> doesn't make a difference. The only way to put HTML into a table is to put it in The quick fix, in this case, would be if |
@Postmodum37 what are you trying to render inside the table using render_async? Can you try to pass in a |
@nikolalsvk This solution fixes the problem. Creating a |
Woohoo, glad that it works 🎉 If you want, you can post a recipe to the project README so other people can refer to it :) |
I have a partial view with root element
<tr>
But the gem is wrapping this partial view with a
<div>
The text was updated successfully, but these errors were encountered: