@digital-ai/dot-components 3.2.0 → 3.2.1

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.
Files changed (2) hide show
  1. package/index.esm.js +2 -1
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -4000,6 +4000,7 @@ const DotList = ({
4000
4000
  width: listWidth
4001
4001
  },
4002
4002
  children: [items.map((item, index) => {
4003
+ var _a;
4003
4004
  const handleListItemClick = e => {
4004
4005
  var _a;
4005
4006
  const target = e.target;
@@ -4011,7 +4012,7 @@ const DotList = ({
4011
4012
  updateSelectedListItem(index);
4012
4013
  }
4013
4014
  };
4014
- const determineOnClick = item.onClick || item.items ? handleListItemClick : null;
4015
+ const determineOnClick = item.onClick || ((_a = item.items) === null || _a === void 0 ? void 0 : _a.length) ? handleListItemClick : null;
4015
4016
  const handleMenuLeave = event => {
4016
4017
  // TODO: Need to apply animation to open/close
4017
4018
  var _a, _b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [