bits-ui 2.17.2 → 2.17.3

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