diff --git a/packages/sn-pickers-react/src/components/tree-picker/tree-picker.tsx b/packages/sn-pickers-react/src/components/tree-picker/tree-picker.tsx index f2a143597..75355019f 100644 --- a/packages/sn-pickers-react/src/components/tree-picker/tree-picker.tsx +++ b/packages/sn-pickers-react/src/components/tree-picker/tree-picker.tsx @@ -21,7 +21,7 @@ export function TreePicker, node: T) => { + (_event: unknown, node: T) => { if (!node.isParent) { const newSelection = props.allowMultiple ? selection.filter((item) => item.Id !== node.Id) : [] if (newSelection.length === selection.length || (!props.allowMultiple && selection[0].Id !== node.Id)) { @@ -106,7 +106,10 @@ export function TreePicker {items?.map((item) => ( -
onDoubleClickHandler(e, item as any)} key={item.Id}> +
onCheckedChangeHandler(e, item as any)} + onDoubleClick={(e) => onDoubleClickHandler(e, item as any)} + key={item.Id}> {renderItem(item as any)}
))}