-
Hello! I'd like to keep my dropdown menu open once the user selects an option. Is there any prop that i'm missing? I tried the following:
Current behaviourExpected behaviourThis is accomplished by preventing default <Dropdown.Group>
{options.map(opt => (
<CheckboxItem
key={opt}
checked={data[opt]}
onClick={e => {
e.preventDefault();
setData(s => ({ ...s, [opt]: !s[opt] }));
}}
onCheckedChange={checked => setData(s => ({ ...s, [opt]: checked }))}
>
{opt}
</CheckboxItem>
))}
</Dropdown.Group> Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
jjenzz
Aug 30, 2022
Replies: 1 comment 1 reply
-
There is an |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rawnly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an
onSelect
event which you can prevent.