mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01: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:
committed by
Copybot
parent
a214680e74
commit
1f87894190
+1
@@ -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')
|
||||
|
||||
+1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user