bootstrap-table icon indicating copy to clipboard operation
bootstrap-table copied to clipboard

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

Open francogp opened this issue 2 years ago • 5 comments

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 avatar Jun 09 '23 12:06 francogp

Please provide us an example using our live editor.

UtechtDustin avatar Jun 09 '23 12:06 UtechtDustin

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

francogp avatar Jun 09 '23 13:06 francogp

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

UtechtDustin avatar Jun 09 '23 13:06 UtechtDustin

the id collision seems to be multisort extension

francogp avatar Jun 09 '23 13:06 francogp

Thank you for the confirmation.

UtechtDustin avatar Jun 09 '23 13:06 UtechtDustin