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

Attributes removed from the table header #7727

Open
langdiana opened this issue Feb 16, 2025 · 1 comment
Open

Attributes removed from the table header #7727

langdiana opened this issue Feb 16, 2025 · 1 comment
Assignees
Labels
Bug Issues which are marked as Bug

Comments

@langdiana
Copy link

Bootstraptable version(s) affected

1.24.0

Description

I need to add some attributes to the table header (HTMX attributes). However they are all removed after rendering in the browser.
Is this a bug or a known behaviour? If latter, is there a workaround?

Example(s)

No response

Possible Solutions

No response

Additional Context

No response

@langdiana langdiana added the Bug Issues which are marked as Bug label Feb 16, 2025
@wenzhixin wenzhixin self-assigned this Feb 17, 2025
@s52aa
Copy link

s52aa commented Feb 20, 2025

Not only table header, even tr attributes are deleted.

See jsFiddle example where there are two same tables except first one has data-toggle="table" and the second one is without.

As a result hx-confirm="User clicked on row!" hx-get="/contact/1" attributes are lost in the first case where bootstrap-table initializes the table.

https://jsfiddle.net/sL19m0re/1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues which are marked as Bug
Projects
None yet
Development

No branches or pull requests

3 participants