Toggle context menus on click and add active state
This commit is contained in:
parent
3eed6cb350
commit
a5497fcab8
9 changed files with 47 additions and 26 deletions
|
@ -307,7 +307,7 @@ export function NavTabs({
|
|||
}}
|
||||
portalToRoot
|
||||
>
|
||||
{({ openMenu, onKeyDown, ref }) => {
|
||||
{({ onClick, onKeyDown, ref }) => {
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
|
@ -319,7 +319,7 @@ export function NavTabs({
|
|||
}}
|
||||
onClick={event => {
|
||||
if (hasPendingUpdate) {
|
||||
openMenu(event);
|
||||
onClick(event);
|
||||
} else {
|
||||
onShowSettings();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue