bits-ui 1.0.0-next.66 → 1.0.0-next.67

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.
@@ -488,7 +488,8 @@ class SelectTriggerState {
488
488
  this.root.handleClose();
489
489
  return;
490
490
  }
491
- if (highlightedValue) {
491
+ //"" is a valid value for a select item so we need to check for that
492
+ if (highlightedValue !== null) {
492
493
  this.root.toggleItem(highlightedValue, this.root.highlightedLabel ?? undefined);
493
494
  }
494
495
  if (!this.root.isMulti && !isCurrentSelectedValue) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "1.0.0-next.66",
3
+ "version": "1.0.0-next.67",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",