Skip to content

一些修改组件内属性后,页面更新后报错TypeError: Cannot read property 'id' of null #3196

@wzohxia

Description

@wzohxia
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.0-rc.1

Environment

vite rc9 vue3.0.2 Chrome86.0.4240.75

Reproduction link

https://2x.antdv.com/components/form-cn/

Steps to reproduce

<template>
  <a-form :model="form">
    <a-form-item label="测试" name="test">
      <a-input 
      allow-clear 
      v-model:value="form.test" />
    </a-form-item>
  </a-form>
</template>

<script>
import { reactive, defineComponent, toRefs } from 'vue'
export default defineComponent({
  name: 'App',
  setup() {
    const info = reactive({
      form: { test: '' },
    })

    return {
      ...toRefs(info),
    }
  },
})
</script>

1.保存运行之后
2.删除allow-clear 保存
image

试过tree table也有这样的报错

What is expected?

是否我这边设置的问题?

What is actually happening?

不出现这种报错

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions