Skip to content

Commit e00ca96

Browse files
committed
Pass nodeId in filterableTreeView as well
1 parent 1f5d29e commit e00ca96

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.changeset/all-paths-dance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
'@openproject/primer-view-components': patch
2+
'@openproject/primer-view-components': minor
33
---
44

55
Fix selection of nodes with the same path in Primer::Alpha::TreeView

app/components/primer/open_project/filterable_tree_view.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ export class FilterableTreeViewElement extends HTMLElement {
119119
}
120120

121121
this.#checkedNodeIds.set(nodeId, nodeInfo.checkedValue)
122-
const payload: {path: string[]; value?: string} = {path: nodeInfo.path}
122+
const payload: {path: string[]; nodeId?: string; value?: string} = {path: nodeInfo.path}
123+
payload.nodeId = nodeId
123124
const dataValue = node.getAttribute('data-value')
124125
if (dataValue) payload.value = dataValue
125126
this.#checkedNodeFormPayloads.set(nodeId, payload)

0 commit comments

Comments
 (0)