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

Windows Firefox 使用搜狗输入法输入中文,第一次输入结果为空 #2151

Closed
1 task
uumom opened this issue Apr 26, 2020 · 12 comments
Closed
1 task

Comments

@uumom
Copy link

uumom commented Apr 26, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.5.1

Environment

windows10,Firefox 75.0,vue2.6.11

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. vue-cli3生成的模板
  2. 全量加载ant-design-vue组件
  3. 在form表单组件官方第一个demo例子上加上tabs组件
  4. windows10用firefox浏览器访问
  5. 输入法切换成搜狗中文输入法(微软输入法没有问题)
  6. 在input组件中输入中文
  7. 第一次输入失败,输入框为空,再次输入成功

What is expected?

在windows, firefox中使用搜狗输入法可以正确输入中文

What is actually happening?

在windows, firefox中使用搜狗输入法第一次输入中文,输入框中结果为空


测试例子是基于antd@1.5.3版本

@tangjinzhou
Copy link
Member

不加 tabs 也没问题 ?

@uumom
Copy link
Author

uumom commented Apr 26, 2020

是的

@uumom
Copy link
Author

uumom commented Apr 27, 2020

我们项目目前是基于antd@1.4.12版本,请问对于这个问题,在这个版本上可以提供一个兼容的解决方案么 @tangjinzhou

@tangjinzhou
Copy link
Member

image
image
所以到底是哪个版本 升级下试试? 没有破坏性更新,可以直接升级

@uumom
Copy link
Author

uumom commented Apr 28, 2020

最新的版本也是有问题的,你们有解决方案了么?

@uumom
Copy link
Author

uumom commented Apr 28, 2020

我们的项目是基于1.4.12版本的,发现问题之后,试过最新版本,也是有问题

我们是想问在不升级版本的前提下,在1.4.12版本下是否有什么兼容方案,因为升级需要一定的回归和测试成本

@uumom
Copy link
Author

uumom commented Apr 28, 2020

上面提供的复现例子,是基于最新版本1.5.3

@jy0529
Copy link
Contributor

jy0529 commented May 2, 2020

image
ScrollableTabBarNode.jsx 把updated钩子里的nextTick改成setTimeout可以fix, 猜测是firefox里事件顺序的问题,如果再细看是updated钩子触发的方法getScrollWH会去获取scrollWidth,触发了recalcuate style, 注释掉getScrollWH是正常了的。。
@tangjinzhou

@thorn929
Copy link

火狐版本问题,升级一下就好了

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@uumom
Copy link
Author

uumom commented Jan 3, 2021

Is this problem solved?

@github-actions
Copy link

github-actions bot commented Jan 4, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants