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>
|
||||
);
|
||||
|
||||
const MenuItemComponent = menuContent?.content || DefaultMenuItem;
|
||||
const MenuItemComponent = menuContent ?? DefaultMenuItem;
|
||||
|
||||
return (
|
||||
<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 {
|
||||
|
||||
@ -56,7 +56,7 @@ const ScrollArea = React.forwardRef<
|
||||
return (
|
||||
<ScrollAreaPrimitive.Root
|
||||
ref={ref}
|
||||
className={cn('relative h-full overflow-hidden', className)}
|
||||
className={cn('relative h-full overflow-hidden', className, '[&>div>div]:!block')}
|
||||
type={props.type}
|
||||
{...props}
|
||||
>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user