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

Duplicated ID if I use 2 different tables in the same web #6830

Closed
francogp opened this issue Jun 9, 2023 · 5 comments · Fixed by #7303
Closed

Duplicated ID if I use 2 different tables in the same web #6830

francogp opened this issue Jun 9, 2023 · 5 comments · Fixed by #7303
Labels
Bug Issues which are marked as Bug confirmed Issues that have been confirmed with a reduced test case and identify a bug. has PR Issues that has been fixed with a PR. multiple-sort Issues for the multiple-sort extension.

Comments

@francogp
Copy link

francogp commented Jun 9, 2023

Bootstraptable version(s) affected

1.21.4

Description

If I call 2 different tables, I get a lot of warning and errors from EDGE browser, for duplicated ID

Example(s)

image

Possible Solutions

every input and button should start with the table ID in their ID name

Additional Context

No response

@francogp francogp added the Bug Issues which are marked as Bug label Jun 9, 2023
@UtechtDustin
Copy link
Collaborator

Please provide us an example using our live editor.

@UtechtDustin UtechtDustin added the needs example Need an example in order to confirm the issue or the PR. label Jun 9, 2023
@francogp
Copy link
Author

francogp commented Jun 9, 2023

For some reason, I use the same code in my end and the ID collision warning are all present. In this demo example, the collision IS PRESENT (you can search button id="add" and button id="delete" in both table multisort button), but it does not appear as a warning (don't know why). In the demo only appear the warnings and errors in this screenshot.
https://live.bootstrap-table.com/code/francogp/15608
image

@UtechtDustin
Copy link
Collaborator

Is the multisort extension the only extension with duplicated Id's ?
Do you also get errors if the multisort extension is disabled ?

@UtechtDustin UtechtDustin added the multiple-sort Issues for the multiple-sort extension. label Jun 9, 2023
@francogp
Copy link
Author

francogp commented Jun 9, 2023

the id collision seems to be multisort extension

@UtechtDustin UtechtDustin added confirmed Issues that have been confirmed with a reduced test case and identify a bug. and removed needs example Need an example in order to confirm the issue or the PR. labels Jun 9, 2023
@UtechtDustin
Copy link
Collaborator

Thank you for the confirmation.

@wenzhixin wenzhixin added the has PR Issues that has been fixed with a PR. label Apr 28, 2024
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 confirmed Issues that have been confirmed with a reduced test case and identify a bug. has PR Issues that has been fixed with a PR. multiple-sort Issues for the multiple-sort extension.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants