通过amisScoped获取Form 表单,先调用clearErrors,在调用validate方法,input-kv组件报错
Open
need confirm
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
通过amisScoped获取Form 表单,调用clearErrors,在调用validate方法,input-kv组件报错
#### 截图或视频:
#### amis 版本是3.4.2
#### 复现的操作步骤:
1. 点击按钮,通过amisScoped 获取到form表单组件
2. 通过form 表单调用clearErrors方法,清空验证失败信息
3. 通过form 表单调用validate 方法
4. debug查看表单实时数据时,input-kv组件的数据存在,但页面表现数据已被清空
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue through the amisScoped Form APIs: call clearErrors and then validate, then inspect the input-kv component's displayed value against the form data. The work is done when input-kv continues to display its data correctly after this sequence in amis 3.4.2.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100