bits-ui 2.13.0 → 2.13.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.
@@ -193,6 +193,8 @@ function isValidEvent(e, node) {
193
193
  const targetIsContextMenuTrigger = Boolean(target.closest(`[${CONTEXT_MENU_TRIGGER_ATTR}]`));
194
194
  if ("button" in e && e.button > 0 && !targetIsContextMenuTrigger)
195
195
  return false;
196
+ if ("button" in e && e.button === 0 && targetIsContextMenuTrigger)
197
+ return true;
196
198
  const nodeIsContextMenu = Boolean(node.closest(`[${CONTEXT_MENU_CONTENT_ATTR}]`));
197
199
  if (targetIsContextMenuTrigger && nodeIsContextMenu)
198
200
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "2.13.0",
3
+ "version": "2.13.1",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",