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

[Question] 自定义组件使用field控制 第一次onChange拿到的value是undefined #2337

Open
yiescc opened this issue Apr 6, 2022 · 3 comments

Comments

@yiescc
Copy link

yiescc commented Apr 6, 2022

Demo:https://github.com/yiescc/Rax-Field-demo.git

描述:

  • 自定义组件第一次触发onChange拿到的value是undefined
  • 第二次拿到的value是正确的值
@ChrisCindy
Copy link
Collaborator

收到,已反馈

@lianmin
Copy link

lianmin commented Apr 7, 2022

自定义表单组件的写法,参考下此处: https://fusion.design/pc/component/field?themeid=4

@yiescc
Copy link
Author

yiescc commented Apr 8, 2022

自定义表单组件的写法,参考下此处: https://fusion.design/pc/component/field?themeid=4

demo里面就是参考示例,在fusion没有问题,在rax会出现上述问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants