frontend-collective / frontend-collective/react-sortable-tree

onDoubleClick on a Node Props

Open
#775 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

Is it possible to add a onDoubleClick event on the whole node? I already have two buttons for the node, but I want to be able to double click on the node and perform the samen action as in the edit button (openDialog function).

At this moment my Node Props look like this:

```
const getNodeProps = ({ node: { name, minute }, path }) => ({
title: name,
className: classes.agendaPointItem,
buttons: [
minute ? ( // Only show this button when editing a Meeting.
openDialog(name, minute, path)}>


) : null,
checkForContent(name, minute, path)(event)}
>

,
],
});
```

Thanks in advance, any tips are welcome.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.