Skip to content

Commit 38b2c4a

Browse files
committed
docs: tweaks prop documentation for hasInteractiveNodes
1 parent be623ac commit 38b2c4a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/Tree/types.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,14 @@ export interface TreeProps {
275275
* {@link Tree.defaultProps.transitionDuration | Default value}
276276
*/
277277
transitionDuration?: number;
278-
278+
279279
/**
280-
* If node is interactive, drag and pan d3 events will only trigger on main tree element and not on nodes and links.
281-
*/
280+
* Disables drag/pan/zoom D3 events when hovering over a node.
281+
* Useful for cases where D3 events interfere when interacting with inputs or other interactive elements on a node.
282+
*
283+
* **Tip:** Holding the `Shift` key while hovering over a node re-enables the D3 events.
284+
*
285+
* {@link Tree.defaultProps.hasInteractiveNodes | Default value}
286+
*/
282287
hasInteractiveNodes?: boolean;
283288
}

0 commit comments

Comments
 (0)