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

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

Open
poohlaha opened this issue Jan 3, 2024 · 4 comments
Open

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

poohlaha opened this issue Jan 3, 2024 · 4 comments
Labels
bug need reproduce We cannot reproduce your problem

Comments

@poohlaha
Copy link

poohlaha commented Jan 3, 2024

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

@poohlaha poohlaha added the bug label Jan 3, 2024
@poohlaha poohlaha changed the title SearchBar在手机端输入中文时调用onChange显示问题 SearchBar在模拟器输入中文时调用onChange显示问题 Jan 3, 2024
@poohlaha
Copy link
Author

poohlaha commented Jan 3, 2024

image

@1587315093 1587315093 added the need reproduce We cannot reproduce your problem label Jan 4, 2024
Copy link
Contributor

github-actions bot commented Jan 4, 2024

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 创建一个实例。

@1587315093
Copy link
Contributor

代码也贴上来吧

@poohlaha
Copy link
Author

代码如下:
image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug need reproduce We cannot reproduce your problem
Projects
None yet
Development

No branches or pull requests

2 participants