Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createVirtualBox创建一个虚拟盒子组件,通过props传值,当清空后重新创建的组件会保留上次的props #615

Closed
AK35 opened this issue Jan 16, 2020 · 0 comments · Fixed by #618

Comments

@AK35
Copy link

AK35 commented Jan 16, 2020

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Bug
  1. Describe your issue:

1、createVirtualBox创建一个盒子容器对象,创建一个盒子的实例放入SchemaForm中渲染,通过props传递自定义属性,假设key为_key,值为111,容器内部获取到_key为111
image

2、清空SchemaForm中的元素
image

3、重新创建一个同第一步相同的盒子实例,通过props传递自定义属性,key同样为_key,值为222,容器内获取到_key扔为111,而不是第二次传入的222
image

  1. codesandbox地址:
    https://codesandbox.io/s/nifty-lake-tispz
    .
janryWang added a commit to janryWang/uform that referenced this issue Jan 18, 2020
janryWang added a commit that referenced this issue Jan 19, 2020
* fix(@uform/shared): fix isValid

* fix(@uform/core): fix visible changed but not trigger onChange callback

* fix(@uform/core): fix #613 and #615

* refactor(@uform/core): improve code
ZirkleTsing pushed a commit that referenced this issue May 14, 2020
* fix(@uform/shared): fix isValid

* fix(@uform/core): fix visible changed but not trigger onChange callback

* fix(@uform/core): fix #613 and #615

* refactor(@uform/core): improve code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant