ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.

Home Page:https://mobile.ant.design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SearchBar在模拟器输入中文时调用onChange显示问题

poohlaha opened this issue · comments

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方法, 显示如下
image
中文输入后有个地方打印出了空字符串,是有问题的, 如果要在输入为空的时候做些其他事件就会有问题了

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.

我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandboxstackblitz 创建一个实例。

commented

代码也贴上来吧

代码如下:
image

用真机测试正常的,模拟器不行,不知道为什么,如果觉得这个不是问题,就关掉吧