简体   繁体   English

将输入类型中 Form.Item 的默认按键行为更改为 onChange(选项卡)

[英]Change default keypress behaviour of Form.Item in INput type to onChange (tab out)

While using the antd library and using the Form component having an inside of always triggers a FormChanged event every single key pressed.在使用 antd 库和使用具有内部的 Form 组件时,每次按下每个键都会触发一个 FormChanged 事件。

How do i change this behaviour to trigger the FormChanged event on when the user completes or tabs out of the text box.我如何更改此行为以在用户完成或跳出文本框时触发 FormChanged 事件。

 <Form onValuesChange={this.onFormChanged}> <Form.Item> <Input /> </Form.Item> </Form>

我不知道库本身,但您可以在输入本身上使用 onBlur 事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM