mirror of https://github.com/langgenius/dify.git
Merge branch 'fix/styling-issue' of https://github.com/langgenius/dify into fix/styling-issue
This commit is contained in:
commit
aeaad2e843
|
|
@ -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