mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 15:30:13 +01:00
Treeview OnSelect link calling now respects turbo-frames again
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user