Merge pull request #14674 from overleaf/jdt-prevent-menu-item-drags

feat: force all menuitems to be undraggable, and make home button und…
GitOrigin-RevId: 5b04a07aaca43b1eff8b50958d74356663b6d416
This commit is contained in:
Jimmy Domagala-Tang 2023-09-12 11:30:02 -04:00 committed by Copybot
parent 7a7689e9c5
commit 3aa6346ab3
3 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,7 @@ function BackToProjectsButton() {
<div className="toolbar-item">
<a
className="btn btn-full-height"
draggable="false"
href="/project"
onClick={() => {
eventTracking.sendMB('navigation-clicked-home')

View file

@ -32,6 +32,7 @@ function PdfHybridDownloadButton() {
<Button
onClick={handleOnClick}
bsStyle="link"
draggable="false"
disabled={!pdfDownloadUrl}
download
href={pdfDownloadUrl || '#'}

View file

@ -138,7 +138,7 @@ function SplitMenuButton({
}
function SplitMenuItem(props: MenuItemProps) {
return <MenuItem {...props} />
return <MenuItem {...props} draggable="false" />
}
SplitMenu.Item = SplitMenuItem