mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix firefox bug where user can't focus on input while renaming file on editor file tree (#11134)
GitOrigin-RevId: daebbe6df4a3fef41cbf25444a31015d306901b3
This commit is contained in:
parent
5f8e10de86
commit
67c8fa560e
1 changed files with 3 additions and 0 deletions
|
@ -10,10 +10,12 @@ import { useDraggable } from '../../contexts/file-tree-draggable'
|
|||
import FileTreeItemName from './file-tree-item-name'
|
||||
import FileTreeItemMenu from './file-tree-item-menu'
|
||||
import { useFileTreeSelectable } from '../../contexts/file-tree-selectable'
|
||||
import { useFileTreeActionable } from '../../contexts/file-tree-actionable'
|
||||
|
||||
function FileTreeItemInner({ id, name, isSelected, icons }) {
|
||||
const { permissionsLevel } = useEditorContext(editorContextPropTypes)
|
||||
const { setContextMenuCoords } = useFileTreeMainContext()
|
||||
const { isRenaming } = useFileTreeActionable()
|
||||
|
||||
const { selectedEntityIds } = useFileTreeSelectable()
|
||||
|
||||
|
@ -60,6 +62,7 @@ function FileTreeItemInner({ id, name, isSelected, icons }) {
|
|||
})}
|
||||
role="presentation"
|
||||
ref={dragRef}
|
||||
draggable={!isRenaming}
|
||||
onContextMenu={handleContextMenu}
|
||||
>
|
||||
<div
|
||||
|
|
Loading…
Reference in a new issue