ant-design / ant-design/pro-components

renderFormItem 如何重写onChange 事件

Open
#8,912 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

我想对onchange 事件进行拦截 ,当我使用自定的组件 中onchange事件的时候 表格会重新渲染 以至于我的输入框失去焦点

Contributor guide

Open the contributing guide

Research direction

Start with the renderFormItem entry point and reproduce the reported behavior using a custom component with an onChange handler. Investigate why the table rerenders and the input loses focus; done means the handler can be intercepted without the custom input losing focus.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.