Skip to content

html组件的focus状态会影响Modal关闭后页面的滚动位置 #1320

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

Closed
1 task done
s51983 opened this issue Oct 21, 2019 · 1 comment
Closed
1 task done

html组件的focus状态会影响Modal关闭后页面的滚动位置 #1320

s51983 opened this issue Oct 21, 2019 · 1 comment
Labels

Comments

@s51983
Copy link

s51983 commented Oct 21, 2019

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

Version

1.4.1

Environment

win10, chorme 77.0.3865.120, vue 2.6.10

Reproduction link

Edit on CodeSandbox

Steps to reproduce

打开codesandbox,点击任何Tab后

  • 立即用黑色边框标示出组件是否获得focus状态
  • 1秒后滚动500px
  • 2秒后打开Modal
    通过任何形式关闭Modal都会滚动回Tab位置

What is expected?

modal关闭后页面应该保持当前的滚动位置,但是会返回到Tab的位置

What is actually happening?

当页面中有“处于focus状态的组件”且在Modal打开后仍然“保持有focus状态”的话,那么无论页面滚动到何位置,在关闭Modal后都将滚动到"有focus状态的组件"的位置

@github-actions
Copy link

github-actions bot commented Dec 9, 2020

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 Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant