mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-25 14:10:50 +08:00
fix(dialog): onEsc
This commit is contained in:
parent
6a343873eb
commit
ed5be49732
@ -91,10 +91,9 @@ export const NDialogEnvironment = defineComponent({
|
||||
}
|
||||
}
|
||||
function handleEsc (): void {
|
||||
const { onEsc, closeOnEsc } = props
|
||||
const { onEsc } = props
|
||||
if (onEsc) {
|
||||
onEsc()
|
||||
closeOnEsc && hide()
|
||||
}
|
||||
}
|
||||
function hide (): void {
|
||||
|
Loading…
x
Reference in New Issue
Block a user