ButtonGroup: overflowButton
closes when toolbar buttons updated
#1118
Labels
bug
Something isn't working
has workaround
This issue has a workaround or is possible to achieve in user-land.
Use the
overflowButton
prop in the<ButtonGroup>
to display a<DropdownMenu>
. Click the dropdown menu to open it. If any of the items are updated, the dropdown menu is closed.This may happen if we need to load some command for a toolbar asynchronously. When the logic is updated, the overflow button will be closed.
Alternatively, if using a static
<DropdownMenu>
in the<ButtonGroup>
, the dropdown is not closed when updated (though I see a weird extra button; not sure if this is my implementation...).Code Sandbox Reproduction:
https://stackblitz.com/edit/github-gye6zf
Clicking the reload sets all buttons to a "loading" state for 5 seconds, and then populates them with the text.
The text was updated successfully, but these errors were encountered: