mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Treeview OnSelect link calling now respects turbo-frames again
This commit is contained in:
parent
f21cd55b2e
commit
145aca485c
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ export default class extends Controller {
|
|||
showTags: this._showTags,
|
||||
data: data,
|
||||
showIcon: false,
|
||||
onNodeSelected: function (event) {
|
||||
onNodeSelected: (event) => {
|
||||
const node = event.detail.node;
|
||||
if (node.href) {
|
||||
|
||||
|
@ -75,7 +75,7 @@ export default class extends Controller {
|
|||
let a = document.createElement('a');
|
||||
a.setAttribute('href', node.href);
|
||||
a.innerHTML = "";
|
||||
document.body.appendChild(a);
|
||||
this.element.appendChild(a);
|
||||
a.click();
|
||||
a.remove();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue