Browse Source

fix(nc-gui): wrap removing el in try catch

pull/3801/head
braks 2 years ago
parent
commit
fd057d1414
  1. 4
      packages/nc-gui/composables/useDialog/index.ts

4
packages/nc-gui/composables/useDialog/index.ts

@ -86,7 +86,9 @@ export function useDialog(
render(null, domNode)
setTimeout(() => {
;(mountTarget as HTMLElement)!.removeChild(domNode)
try {
;(mountTarget as HTMLElement)?.removeChild(domNode)
} catch (e) {}
}, 100)
closeHook.trigger()

Loading…
Cancel
Save