fix(multimonitor): Study browser more menu fixes (#5208)
This commit is contained in:
parent
779907e526
commit
3d4ec3181d
@ -41,7 +41,7 @@ const getMenuItemsDefault = ({ commandsManager, items, ...props }: withAppTypes)
|
|||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
);
|
);
|
||||||
|
|
||||||
const MenuItemComponent = menuContent?.content || DefaultMenuItem;
|
const MenuItemComponent = menuContent ?? DefaultMenuItem;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DropdownMenuContent
|
<DropdownMenuContent
|
||||||
|
|||||||
@ -131,7 +131,11 @@ export default class CustomizationService extends PubSubService {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.addReferences(this.configuration);
|
// Only add references for the configuration once.
|
||||||
|
if (!this.configuration?._hasBeenAdded) {
|
||||||
|
this.addReferences(this.configuration);
|
||||||
|
Object.defineProperty(this.configuration, '_hasBeenAdded', { value: true, writable: false });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public onModeEnter(): void {
|
public onModeEnter(): void {
|
||||||
|
|||||||
@ -56,7 +56,7 @@ const ScrollArea = React.forwardRef<
|
|||||||
return (
|
return (
|
||||||
<ScrollAreaPrimitive.Root
|
<ScrollAreaPrimitive.Root
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn('relative h-full overflow-hidden', className)}
|
className={cn('relative h-full overflow-hidden', className, '[&>div>div]:!block')}
|
||||||
type={props.type}
|
type={props.type}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user