@lensui/lens-table 0.1.57 → 0.1.58

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/dist/index.cjs CHANGED
@@ -2070,7 +2070,9 @@ function TableInner({
2070
2070
  if (!selection) return void 0;
2071
2071
  const handleOutsidePointerDown = (event) => {
2072
2072
  const target = event.target;
2073
- if (!(target instanceof Node) || rootRef.current?.contains(target)) return;
2073
+ if (!(target instanceof Node)) return;
2074
+ if (rootRef.current?.contains(target)) return;
2075
+ if (target instanceof Element && target.closest(".rvg-choice-content, .rvg-date-content, .rvg-time-dropdown")) return;
2074
2076
  clickedCellRef.current = null;
2075
2077
  setSelectionRange(null);
2076
2078
  setSelection(null);
package/dist/index.js CHANGED
@@ -2040,7 +2040,9 @@ function TableInner({
2040
2040
  if (!selection) return void 0;
2041
2041
  const handleOutsidePointerDown = (event) => {
2042
2042
  const target = event.target;
2043
- if (!(target instanceof Node) || rootRef.current?.contains(target)) return;
2043
+ if (!(target instanceof Node)) return;
2044
+ if (rootRef.current?.contains(target)) return;
2045
+ if (target instanceof Element && target.closest(".rvg-choice-content, .rvg-date-content, .rvg-time-dropdown")) return;
2044
2046
  clickedCellRef.current = null;
2045
2047
  setSelectionRange(null);
2046
2048
  setSelection(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensui/lens-table",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "description": "A lightweight, canvas-rendered React table component for LensUI.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",