ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.54k stars 2.38k forks source link

如何避免使用中文输入法时输入拼音的时候触发change事件 #6485

Closed day-xue closed 7 months ago

day-xue commented 7 months ago

Version of antd-mobile

5.33

What is this feature about?

No response

zombieJ commented 7 months ago

这是 React 原生行为,受控必须保持 value 同步否则会导致输入不了中文。如果不需要关心中间态,可以自行 HOC 一下只抛出非 Composition 态下的事件。