trotl-table 1.0.100 → 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);