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

modal的prompt的输入弹窗形式,在iOS上点击触摸输入框有时候反应缓慢,官方demo中就可以复现 #1857

Closed
itxuye opened this issue Sep 16, 2017 · 14 comments
Assignees
Milestone

Comments

@itxuye
Copy link

itxuye commented Sep 16, 2017

Version

1.6.7

Environment

iOS真机

Reproduction link

https://mobile.ant.design/kitchen-sink

Steps to reproduce

modal demo中prompt的几个输入弹窗,点击触摸输入框,反应缓慢或者有时候不弹出键盘,试几次才好。
还有种场景是隐藏键盘,再重新点击触摸输入框,键盘也是好几次才能调用起

What is expected?

在Android的机器上,反应正常

What is actually happening?

点击触摸输入框,反应缓慢或者有时候不弹出键盘,试几次才好。

@ant-design-bot
Copy link

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: ant-design/ant-design#4897

@silentcloud
Copy link
Contributor

silentcloud commented Sep 18, 2017

Modal 目前样式里很多 fixed,结合 iOS 键盘情况后,会出现各种问题

https://dansajin.com/2012/12/07/fix-position-fixed/

1.x 临时修复的话估计得按照上面这种方式来
2.0 准备改成 position:absolute,这就需要 body 加 {position: relative; width:100%; height:100%} 应该算是 break change 了 这种也不行,需要用户一直透传 height 100%,先按 1.x 方案来了

@warmhug @paranoidjk

@warmhug
Copy link
Contributor

warmhug commented Sep 18, 2017

文章里说的 fixed 的问题、之前确实有。但这个不能确定 fixed 会跟键盘弹出速度有关吧?

@silentcloud
Copy link
Contributor

键盘弹出是 setTimeout 问题,不过我实测,跟 fixed 也有关系

@silentcloud silentcloud added this to the 2.0.0 milestone Sep 18, 2017
@silentcloud
Copy link
Contributor

额,经过各种探测,影响弹出速度是因为 label 标签位置有问题,更改 label 标签位置,各方面都 ok 了

@warmhug
Copy link
Contributor

warmhug commented Sep 19, 2017

具体原因是什么?这种比较少见,在代码里加个注释或链接吧

@itxuye
Copy link
Author

itxuye commented Sep 19, 2017

请问修复好的版本会在哪个版本发布呢,目前项目在线上了。

@silentcloud
Copy link
Contributor

具体原因就是我上面说的 label 标签位置有问题 @warmhug
@itxuye 这个会在 1.6.9 上发布,稍等

@itxuye
Copy link
Author

itxuye commented Sep 25, 2017

@silentcloud 目前看还是1.6.7版本,之后的版本最近不会上吗?

@silentcloud
Copy link
Contributor

@itxuye 上周没有发 1.6.9, 可以先指定 1.6.9-beta.0, 或者你等会,我这会发个 1.6.9

@silentcloud
Copy link
Contributor

@itxuye 1.6.9 has been released

@itxuye
Copy link
Author

itxuye commented Sep 25, 2017

@silentcloud Thx .

@itxuye
Copy link
Author

itxuye commented Oct 11, 2017

@silentcloud 你好,在iOS 中仍然有点慢,很难点,点输入框有时候点几次或者点左边才能触发焦点弹出键盘。

@silentcloud
Copy link
Contributor

@itxuye 比之前没修复之前好很多,目前稍微有点延迟,这个应该跟 position:fixed 有关,但是改 position 涉及的改动很大,还需求 body height:100% 一直往下传,也要取决用户样式;

如果你觉得影响比较大大话,可以按我说大将 body height:100% 往下传,然后覆盖 modal position:fixed 相关样式

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

4 participants