You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,34 @@
1
1
# Version 3.0.0
2
2
3
-
## Features
3
+
**Breaking Changes**
4
+
5
+
- Tree Component `disableDrop` Prop
6
+
- NodeApi `isDroppable` property
7
+
8
+
**Features**
4
9
5
10
- Disable Edit
6
11
- Disable Drop Dynamically
7
12
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**
9
22
10
23
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.
11
24
12
-
### Disable Drop Dynamically
25
+
**Disable Drop Dynamically**
13
26
14
27
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.
15
28
16
29
## Breaking Changes
17
30
18
-
### Tree Component `disableDrop` Prop
31
+
**Tree Component `disableDrop` Prop**
19
32
20
33
If you were passing a function to the `disableDrop` prop, you'll need to update it to use the following signature:
21
34
@@ -29,6 +42,6 @@ declare function disableDrop(args: {
29
42
30
43
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.
31
44
32
-
### NodeApi `isDroppable` property
45
+
**NodeApi `isDroppable` property**
33
46
34
47
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