ant-design-mobile
ant-design-mobile copied to clipboard
SearchBar在模拟器输入中文时调用onChange显示问题
Version of antd-mobile
5.33.2
Operating system and its version
No response
Browser and its version
Safari17.0
Sandbox to reproduce
No response
What happened?
在SearchBar中输入中文, 比如: de
的拼音中文字是 的
, 调用onChange方法, 显示如下
中文输入后有个地方打印出了空字符串,是有问题的, 如果要在输入为空的时候做些其他事件就会有问题了
Relevant log output
No response
Hi, poohlaha.
Please provide a online reproduction so that we can help you troubleshoot the problem. You can create a demo by codesandbox or stackblitz.
我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandbox 或 stackblitz 创建一个实例。
代码也贴上来吧
代码如下:
用真机测试正常的,模拟器不行,不知道为什么,如果觉得这个不是问题,就关掉吧