mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
Merge branch 'fix/styling-issue' of https://github.com/langgenius/dify into fix/styling-issue
This commit is contained in:
@ -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 })
|
||||||
|
|||||||
Reference in New Issue
Block a user