bits-ui 1.4.4 → 1.4.6
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.
|
@@ -615,7 +615,7 @@ class CommandGroupContainerState {
|
|
|
615
615
|
constructor(opts, root) {
|
|
616
616
|
this.opts = opts;
|
|
617
617
|
this.root = root;
|
|
618
|
-
this.trueValue = opts.value.current;
|
|
618
|
+
this.trueValue = opts.value.current ?? opts.id.current;
|
|
619
619
|
useRefById({
|
|
620
620
|
...opts,
|
|
621
621
|
deps: () => this.shouldRender,
|
|
@@ -632,8 +632,8 @@ class CommandGroupContainerState {
|
|
|
632
632
|
this.trueValue = this.headingNode.textContent.trim().toLowerCase();
|
|
633
633
|
return this.root.registerValue(this.trueValue);
|
|
634
634
|
}
|
|
635
|
-
else
|
|
636
|
-
this.trueValue = this.opts.
|
|
635
|
+
else {
|
|
636
|
+
this.trueValue = `-----${this.opts.id.current}`;
|
|
637
637
|
return this.root.registerValue(this.trueValue);
|
|
638
638
|
}
|
|
639
639
|
});
|