alibaba / alibaba/rax

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

Open
#2,337 3 comments 0 reactions 0 assignees View on GitHub
Bug Fusion Mobile
Dominant language
JavaScript
Stars
8k
Forks
611
PR merge metrics
No merged PRs in 30d

Description

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

描述:
- 自定义组件第一次触发onChange拿到的value是undefined
- 第二次拿到的value是正确的值

Contributor guide

Open the contributing guide

Research direction

Start with the demo repository linked in the issue and reproduce the custom component controlled by field. Compare the values received by onChange on the first and second changes; done means the first callback receives the correct value instead of undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.