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

自动保存的BUG???? #93

Open
zzcabc opened this issue May 23, 2024 · 1 comment
Open

自动保存的BUG???? #93

zzcabc opened this issue May 23, 2024 · 1 comment

Comments

@zzcabc
Copy link
Contributor

zzcabc commented May 23, 2024

开启自动保存,在输入框里打中文,检测到输入内容就保存,比如想输入"中文",会打出拼音"zhongwen",每次输入一个拼音都会进行一次保存,不知道是不是我个人问题,输入法是微软自带的,浏览器是Google Chrome

解决方式 前端输入时检测输入焦点,遇到输入框等焦点移除时在保存(可能别人不习惯)

@BanqiJane
Copy link
Owner

BanqiJane commented May 23, 2024

自动保存是用了propertychange属性 对应源码
这个方法是根据input值改变而触发事件,输入法拼音会在input框的 所以会有这个问题
输入焦点 离开焦点这方法也可行 可以考虑考虑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants