Skip to content

Commit 6fd355f

Browse files
authored
Update Change Log (#102)
1 parent a9c3c5b commit 6fd355f

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

CHANGELOG.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
11
# Version 3.0.0
22

3-
## Features
3+
**Breaking Changes**
4+
5+
- Tree Component `disableDrop` Prop
6+
- NodeApi `isDroppable` property
7+
8+
**Features**
49

510
- Disable Edit
611
- Disable Drop Dynamically
712

8-
### Disable Edit
13+
**Extras**
14+
15+
- Indent Lines in Cities Demo
16+
- Cypress Integration Tests
17+
- Removed ForwardRef Redeclare
18+
19+
## Features
20+
21+
**Disable Edit**
922

1023
The `disableEdit` prop was added to the tree to specify nodes that cannot be edited. This also fixed a bug when pressing the keyboard shortcut "Enter" on a node that did not render a form. The tree would get stuck in the "editing" mode and could not return to the normal mode.
1124

12-
### Disable Drop Dynamically
25+
**Disable Drop Dynamically**
1326

1427
The `disableDrop` prop now accepts a function with the arguments described below. Previously you could only provide a static list of nodes that were not droppable, but now you can determine it dynamically.
1528

1629
## Breaking Changes
1730

18-
### Tree Component `disableDrop` Prop
31+
**Tree Component `disableDrop` Prop**
1932

2033
If you were passing a function to the `disableDrop` prop, you'll need to update it to use the following signature:
2134

@@ -29,6 +42,6 @@ declare function disableDrop(args: {
2942

3043
This lets you disallow a drop based on the items being dragged and which node you are hovering over. You might notice it matches the function signature of the onMove handler. It is still possible to pass a string or a boolean to the `disableDrop` prop to prevent drops statically.
3144

32-
### NodeApi `isDroppable` property
45+
**NodeApi `isDroppable` property**
3346

3447
The `.isDroppable` property has been removed from the NodeApi class. This is now determined dynamically from the tree's state. It doesn't make sense to ask an single node if it is droppable anymore.

0 commit comments

Comments
 (0)