fix(web): trait menu closes after you pick a level (#5879)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
1 parent
ef051bdb87
commit
d43210050b
1 file changed
+4
-1
@@ -323,6 +323,9 @@ export const TraitsMenuContent = memo(function TraitsMenuContentImpl({
|
||||
key={option.id}
|
||||
value={option.id}
|
||||
hideIndicator
|
||||
// Base UI keeps radio menus open by default. Close on pick so
|
||||
// the traits menu behaves like the model picker.
|
||||
closeOnClick
|
||||
disabled={ultrathinkInBodyText && descriptor.id === primarySelectDescriptor?.id}
|
||||
>
|
||||
<span className="flex w-full min-w-0 items-center justify-between gap-3">
|
||||
@@ -362,7 +365,7 @@ export const TraitsMenuContent = memo(function TraitsMenuContentImpl({
|
||||
}}
|
||||
>
|
||||
{(["on", "off"] as const).map((value) => (
|
||||
<MenuRadioItem key={value} value={value} hideIndicator>
|
||||
<MenuRadioItem key={value} value={value} hideIndicator closeOnClick>
|
||||
<span className="flex w-full min-w-0 items-center justify-between gap-3">
|
||||
<span>{value === "on" ? "On" : "Off"}</span>
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user