bits-ui 2.17.0 → 2.17.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.
@@ -1149,6 +1149,11 @@ export class MenuSubTriggerState {
1149
1149
  if (!this.item.opts.disabled.current &&
1150
1150
  !this.submenu.opts.open.current &&
1151
1151
  !this.#openTimer) {
1152
+ const openDelay = this.opts.openDelay.current;
1153
+ if (openDelay <= 0) {
1154
+ this.submenu.onOpen();
1155
+ return;
1156
+ }
1152
1157
  this.#openTimer = this.content.domContext.setTimeout(() => {
1153
1158
  if (this.submenu.root.isPointerInTransit) {
1154
1159
  this.#clearOpenTimer();
@@ -1156,7 +1161,7 @@ export class MenuSubTriggerState {
1156
1161
  }
1157
1162
  this.submenu.onOpen();
1158
1163
  this.#clearOpenTimer();
1159
- }, this.opts.openDelay.current);
1164
+ }, openDelay);
1160
1165
  }
1161
1166
  }
1162
1167
  onpointerleave(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "2.17.0",
3
+ "version": "2.17.1",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",