react-arborist 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces/tree-api.d.ts +1 -0
- package/dist/module.js +5 -2
- package/dist/module.js.map +1 -1
- package/dist/types/tree-props.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/default-container.tsx +2 -2
- package/src/interfaces/tree-api.ts +4 -0
- package/src/types/tree-props.ts +1 -0
package/package.json
CHANGED
|
@@ -137,8 +137,7 @@ export function DefaultContainer() {
|
|
|
137
137
|
tree.selectAll();
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
|
-
if (e.key === "a" && !e.metaKey) {
|
|
141
|
-
if (!tree.props.onCreate) return;
|
|
140
|
+
if (e.key === "a" && !e.metaKey && tree.props.onCreate) {
|
|
142
141
|
tree.createLeaf();
|
|
143
142
|
return;
|
|
144
143
|
}
|
|
@@ -221,6 +220,7 @@ export function DefaultContainer() {
|
|
|
221
220
|
height={tree.height}
|
|
222
221
|
width={tree.width}
|
|
223
222
|
itemSize={tree.rowHeight}
|
|
223
|
+
overscanCount={tree.overscanCount}
|
|
224
224
|
itemKey={(index) => tree.visibleNodes[index]?.id || index}
|
|
225
225
|
outerElementType={ListOuterElement}
|
|
226
226
|
innerElementType={ListInnerElement}
|