You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears to be impossible to select an empty value within a DropdownMenu's RadioGroup.
I'm assuming this is related to this piece of code, specifically testing if (next ..., as an undefined or null or '' would fail this test and result in the value change not running.
Whilst maybe not a bug, it is annoying when using the radio group for an optional filter, where it's expected that "no filter" would be a state of "undefined".
Reproduction
let whatever: any = undefined;
// ..
<DropdownMenu.RadioGroup bind:value={whatever}>
<DropdownMenu.RadioItem value={undefined}>All</DropdownMenu.RadioItem>
<DropdownMenu.RadioItem value="1234">1234</DropdownMenu.RadioItem>
</DropdownMenu.RadioGroup>
Describe the bug
It appears to be impossible to select an empty value within a DropdownMenu's RadioGroup.
I'm assuming this is related to this piece of code, specifically testing
if (next ...
, as anundefined
ornull
or''
would fail this test and result in the value change not running.Whilst maybe not a bug, it is annoying when using the radio group for an optional filter, where it's expected that "no filter" would be a state of "undefined".
Reproduction
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: