trotl-table 1.0.99 → 1.0.101

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/Table.cjs.js CHANGED
@@ -9841,10 +9841,15 @@ function TableInner({
9841
9841
  });
9842
9842
  }
9843
9843
  };
9844
- window.addEventListener("click", handleClick);
9845
- window.addEventListener("contextmenu", handleClick);
9844
+
9845
+ // Deferred so the tap that opened the menu cannot close it right away.
9846
+ const registerTimer = window.setTimeout(() => {
9847
+ window.addEventListener("click", handleClick);
9848
+ window.addEventListener("contextmenu", handleClick);
9849
+ }, 350);
9846
9850
  window.addEventListener("keydown", handleEscape);
9847
9851
  return () => {
9852
+ window.clearTimeout(registerTimer);
9848
9853
  window.removeEventListener("click", handleClick);
9849
9854
  window.removeEventListener("contextmenu", handleClick);
9850
9855
  window.removeEventListener("keydown", handleEscape);
@@ -11287,7 +11292,7 @@ function TableInner({
11287
11292
  }
11288
11293
  }, /*#__PURE__*/React.createElement("div", {
11289
11294
  className: "row-main",
11290
- onDoubleClick: doubleClickEnable ? handleRowDoubleClick : undefined,
11295
+ onDoubleClick: doubleClickEnable && !(isMobile && Array.isArray(enableMouseRightClick) && enableMouseRightClick.length > 0) ? handleRowDoubleClick : undefined,
11291
11296
  style: {
11292
11297
  display: "flex",
11293
11298
  flex: 1