mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:23:10 +00:00
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:
parent
7a7689e9c5
commit
3aa6346ab3
3 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
|
@ -32,6 +32,7 @@ function PdfHybridDownloadButton() {
|
|||
<Button
|
||||
onClick={handleOnClick}
|
||||
bsStyle="link"
|
||||
draggable="false"
|
||||
disabled={!pdfDownloadUrl}
|
||||
download
|
||||
href={pdfDownloadUrl || '#'}
|
||||
|
|
|
@ -138,7 +138,7 @@ function SplitMenuButton({
|
|||
}
|
||||
|
||||
function SplitMenuItem(props: MenuItemProps) {
|
||||
return <MenuItem {...props} />
|
||||
return <MenuItem {...props} draggable="false" />
|
||||
}
|
||||
|
||||
SplitMenu.Item = SplitMenuItem
|
||||
|
|
Loading…
Reference in a new issue