@gingkoo/pandora-explorer 0.0.1-alpha.59 → 0.0.1-alpha.60

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.
@@ -1,3 +1,3 @@
1
1
  import { TreeItem } from '.';
2
- declare const _default: (props: TreeItem) => import("react/jsx-runtime").JSX.Element | undefined;
2
+ declare const _default: (props: TreeItem) => import("react/jsx-runtime").JSX.Element;
3
3
  export default _default;
package/lib/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @gingkoo/pandora-explorer v0.0.1-alpha.59
2
+ * @gingkoo/pandora-explorer v0.0.1-alpha.60
3
3
  */
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import cx$1 from 'classnames';
@@ -5390,7 +5390,6 @@ var TreeItem = (props => {
5390
5390
  setTitle(props.title);
5391
5391
  }, [props.title]);
5392
5392
  let menudata = [];
5393
- if (props?.menu == false) return;
5394
5393
  if (getMenu(props.id)) {
5395
5394
  menudata = getMenu(props.id);
5396
5395
  } else if (props.type && getMenu(props.type)) {
@@ -5408,6 +5407,7 @@ var TreeItem = (props => {
5408
5407
  let y = 0;
5409
5408
  x = e.nativeEvent.clientX + 5;
5410
5409
  y = e.nativeEvent.clientY + 5;
5410
+ if (props?.menu == false) return;
5411
5411
  props?.openMenu({
5412
5412
  x,
5413
5413
  y,