Skip to content
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

[BUG] Using simple-datatables@latest displays, but does not render HTML #408

Open
3 tasks done
bubbletroubles opened this issue Nov 17, 2024 · 0 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@bubbletroubles
Copy link
Contributor

Describe the bug
When using simple-datatables (latest), the HTML is shown in the table, but not actually rendered
Changing it to use v5, the problem goes away (e.g. in the jsfiddle examples above, the spinner is shown for 10 seconds in the working one. In the broken one, it dispalys <div class="spinner-border" role="status"> <span class="visually-hidden">Loading...</span> </div>

To Reproduce

Steps to reproduce the behavior:

  1. Create code as per the jsfiddle request which uses dataTable.setMessage
  2. Configure the code as per the sample code block below
  3. Use the CDN files with latest version
  4. The HTML is written, but not rendered
  5. Update the CDN files to pin to version 5
  6. The HTML is rendered
    dataTable.setMessage(`
    <div class="spinner-border" role="status">
        <span class="visually-hidden">Loading...</span>
    </div>
    `);

Expected behavior
When using latest the HTML should be rendered.

Additional context
Here are the CDNs used

    <link
      href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css"
      rel="stylesheet"
      type="text/css"
    />
    <script
      src="https://cdn.jsdelivr.net/npm/simple-datatables@latest"
      type="text/javascript"
    ></script>
@bubbletroubles bubbletroubles added the bug Something isn't working label Nov 17, 2024
@bubbletroubles bubbletroubles changed the title [BUG] [BUG] Using simple-datatables@latest writes, but does not render HTML Nov 17, 2024
@bubbletroubles bubbletroubles changed the title [BUG] Using simple-datatables@latest writes, but does not render HTML [BUG] Using simple-datatables@latest displays, but does not render HTML Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant