Skip to content

Boostrap table not rendered properly in rails app when using back button of the browser #7869

Open
@6tronl

Description

@6tronl

Bootstraptable version(s) affected

1.24.0

Description

I noticed a weird behaviour using bootstrap tables in a rails app. The table is not displayed properly (no data in the table, duplicated toolbars and paginations, see screenshot below) in the case where I arrived on this page using the back button of the browser. If I refresh the page using the browser, the table is then displayed properly.

Here is the script I used:

<% @owners.each do |owner| %> <% end %>
Status name firstname town
<%= t(owner.status).to_s %> <%= owner.name.to_s %> <%= owner.firstname.to_s %> <%= owner.town_name.to_s %>
<script> $(function() { $('#table').bootstrapTable() }) </script>

Example(s)

Image

Possible Solutions

I have already tried to change turbo behaviour so page is refreshed when using the back button of the browser but nothing changed.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssues which are marked as Bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions