@elliemae/ds-treeview 2.0.0-next.4 → 2.0.0-next.8

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.
@@ -183,7 +183,8 @@ const useDnDHelpers = () => {
183
183
  setIsDraggingOverThis(true);
184
184
 
185
185
  if (!(openFolderOnHoverTimeout !== null && openFolderOnHoverTimeout !== void 0 && openFolderOnHoverTimeout.current) && // only set the interval if it wasn't set already once
186
- (draggedItem === null || draggedItem === void 0 ? void 0 : draggedItem.id) !== (item === null || item === void 0 ? void 0 : item.id) && (item.isGroup || item.children.length > 0) && // only open groups
186
+ (draggedItem === null || draggedItem === void 0 ? void 0 : draggedItem.id) !== (item === null || item === void 0 ? void 0 : item.id) && ( // don't open ghost element
187
+ item.isGroup || item.children.length > 0) && // only open groups
187
188
  !restrictDragAndDrop) {
188
189
  openFolderOnHoverTimeout.current = setTimeout(() => {
189
190
  item.node.model.isExpanded = true;
@@ -179,7 +179,8 @@ const useDnDHelpers = () => {
179
179
  setIsDraggingOverThis(true);
180
180
 
181
181
  if (!(openFolderOnHoverTimeout !== null && openFolderOnHoverTimeout !== void 0 && openFolderOnHoverTimeout.current) && // only set the interval if it wasn't set already once
182
- (draggedItem === null || draggedItem === void 0 ? void 0 : draggedItem.id) !== (item === null || item === void 0 ? void 0 : item.id) && (item.isGroup || item.children.length > 0) && // only open groups
182
+ (draggedItem === null || draggedItem === void 0 ? void 0 : draggedItem.id) !== (item === null || item === void 0 ? void 0 : item.id) && ( // don't open ghost element
183
+ item.isGroup || item.children.length > 0) && // only open groups
183
184
  !restrictDragAndDrop) {
184
185
  openFolderOnHoverTimeout.current = setTimeout(() => {
185
186
  item.node.model.isExpanded = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-treeview",
3
- "version": "2.0.0-next.4",
3
+ "version": "2.0.0-next.8",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Tree View",
6
6
  "module": "./esm/index.js",
@@ -319,12 +319,12 @@
319
319
  "generateSubmodules": true
320
320
  },
321
321
  "dependencies": {
322
- "@elliemae/ds-basic": "2.0.0-next.4",
323
- "@elliemae/ds-classnames": "2.0.0-next.4",
324
- "@elliemae/ds-dropdownmenu": "2.0.0-next.4",
325
- "@elliemae/ds-icons": "2.0.0-next.4",
326
- "@elliemae/ds-shared": "2.0.0-next.4",
327
- "@elliemae/ds-utilities": "2.0.0-next.4",
322
+ "@elliemae/ds-basic": "2.0.0-next.8",
323
+ "@elliemae/ds-classnames": "2.0.0-next.8",
324
+ "@elliemae/ds-dropdownmenu": "2.0.0-next.8",
325
+ "@elliemae/ds-icons": "2.0.0-next.8",
326
+ "@elliemae/ds-shared": "2.0.0-next.8",
327
+ "@elliemae/ds-utilities": "2.0.0-next.8",
328
328
  "@elliemae/react-sortable-hoc": "^1.0.0",
329
329
  "@john-osullivan/react-window-dynamic-fork": "1.9.0-alpha.1",
330
330
  "prop-types": "~15.7.2",