fix(components): [el-form-item] dom element null checking (#3172)

This commit is contained in:
Taosh
2021-09-01 17:49:39 +08:00
committed by GitHub
parent 017eb705d3
commit e8a66adffd

View File

@@ -66,7 +66,7 @@ export default defineComponent({
onBeforeUnmount(() => {
updateLabelWidth('remove')
removeResizeListener(el.value.firstElementChild as ResizableElement, updateLabelWidthFn)
removeResizeListener(el.value?.firstElementChild as ResizableElement, updateLabelWidthFn)
})
function render() {