mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 11:04:27 +08:00
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)
|
const currChildChunk = useSegmentListContext(s => s.currChildChunk)
|
||||||
|
|
||||||
useKeyPress('esc', (e) => {
|
useKeyPress('esc', (e) => {
|
||||||
|
if (!open) return
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
onClose()
|
onClose()
|
||||||
}, { exactMatch: true, useCapture: true })
|
}, { exactMatch: true, useCapture: true })
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user