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

feat: 添加 normalizeBeforeBlur 属性,支持 onBlur 时修改值 #1878

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

kainstar
Copy link
Collaborator

使用场景:

  • 在输入框失焦时,删除头部和尾部的空字符
<FormInputField
  name="field"
  label="field"
  normalizeBeforeBlur={value => value.trim()}
/>

@w91 w91 merged commit 3da678f into master Feb 14, 2022
@w91 w91 deleted the feature/form-normalize-before-blur branch February 14, 2022 06:00
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 this pull request may close these issues.

None yet

2 participants