mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed reveal error on tab for new BS5 tab data-attribute.
This commit is contained in:
parent
b8c77ca855
commit
768618cede
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ class TabRememberHelper {
|
|||
while(parent) {
|
||||
//Invoker can either be a button or a element
|
||||
let tabInvoker = document.querySelector("button[data-content='#" + parent.id + "']")
|
||||
?? document.querySelector("button[data-bs-target='#" + parent.id + "']")
|
||||
?? document.querySelector("a[href='#" + parent.id + "']");
|
||||
Tab.getOrCreateInstance(tabInvoker).show();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue