A Controlled MenuItemSwitch #31901
Answered
by
layershifter
musyoka-muthangya
asked this question in
Q&A
-
It is impossible to use the MenuItemSwitch in a controlled way:
|
Beta Was this translation helpful? Give feedback.
Answered by
layershifter
Jul 12, 2024
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
khmakoto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MenuItemSwitch
have the same behavior asMenuItemCheckbox
and cannot be controlled individually. They should be controlled atMenu
/MenuGroup
level, please check https://react.fluentui.dev/?path=/docs/components-menu-menu--default#controlled-checkbox-items