This commit is contained in:
Manav Rathi
2025-02-28 16:57:24 +05:30
parent 9d61eaa04d
commit 02a7024cdc
2 changed files with 8 additions and 0 deletions

View File

@@ -407,6 +407,11 @@ const FileViewer: React.FC<FileViewerProps> = ({
open={!!moreMenuAnchorEl} open={!!moreMenuAnchorEl}
onClose={handleMoreMenuClose} onClose={handleMoreMenuClose}
anchorEl={moreMenuAnchorEl} anchorEl={moreMenuAnchorEl}
slotProps={{
list: {
"aria-labelledby": moreMenuAnchorEl?.id,
},
}}
> >
Test Test
</Menu> </Menu>

View File

@@ -617,6 +617,9 @@ export class FileViewerPhotoSwipe {
isButton: true, isButton: true,
html: createPSRegisterElementIconHTML("more"), html: createPSRegisterElementIconHTML("more"),
onClick: (e) => onMore(currentAnnotatedFile(), e.target), onClick: (e) => onMore(currentAnnotatedFile(), e.target),
onInit: (buttonElement) => {
buttonElement.id = "ente-pswp-show-more";
},
}); });
}); });