@bindu-dashing/dam-solution-v2 5.8.107 → 5.8.108

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.
@@ -59,8 +59,7 @@ function BreadCrumbList({ folder, parentFolderId, setParentFolderId, pickerFolde
59
59
  const isLast = treeId === get(last(tree), "_id");
60
60
  const isRoot = index === 0 || treeId === rootFolderId;
61
61
  const handleClick = () => {
62
- if (isRoot)
63
- return; // Root should not be clickable
62
+ // Allow root to be clickable if it's not the last item
64
63
  if (pickerFolderId && setParentFolderId && !isLast) {
65
64
  setParentFolderId(treeId);
66
65
  }
@@ -68,7 +67,7 @@ function BreadCrumbList({ folder, parentFolderId, setParentFolderId, pickerFolde
68
67
  setSelectedKeys(treeId);
69
68
  }
70
69
  };
71
- const currentItemRender = (_jsx(Breadcrumb.Item, { onClick: isRoot ? undefined : handleClick, className: `md-lib-h-auto ${isRoot ? "" : "md-lib-cursor-pointer"}`, children: _jsx(Tooltip, { title: name, children: _jsx("p", { className: "md-lib-max-w-28 md-lib-truncate md-lib-font-semibold md-lib-text-[22px]", children: name }) }) }, treeId));
70
+ const currentItemRender = (_jsx(Breadcrumb.Item, { onClick: !isLast ? handleClick : undefined, className: `md-lib-h-auto ${!isLast ? "md-lib-cursor-pointer" : ""}`, children: _jsx(Tooltip, { title: name, children: _jsx("p", { className: "md-lib-max-w-28 md-lib-truncate md-lib-font-semibold md-lib-text-[22px]", children: name }) }) }, treeId));
72
71
  if (globalSearch) {
73
72
  if (isLast || index == 0) {
74
73
  return currentItemRender;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bindu-dashing/dam-solution-v2",
3
- "version": "5.8.107",
3
+ "version": "5.8.108",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.0.1",
6
6
  "@emoji-mart/data": "^1.2.1",