mirror of https://github.com/langgenius/dify.git
Update web/app/components/datasets/documents/detail/completed/common/drawer.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
6440be9f35
commit
95abf8b44b
|
|
@ -32,6 +32,7 @@ const Drawer = ({
|
|||
const currChildChunk = useSegmentListContext(s => s.currChildChunk)
|
||||
|
||||
useKeyPress('esc', (e) => {
|
||||
if (!open) return
|
||||
e.preventDefault()
|
||||
onClose()
|
||||
}, { exactMatch: true, useCapture: true })
|
||||
|
|
|
|||
Loading…
Reference in New Issue