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

Image: fix Esc can never close the preview at the second time #1… #19027

Closed
wants to merge 1 commit into from

Conversation

giligiliduang
Copy link

@giligiliduang giligiliduang commented Mar 23, 2020

Closes #18983
hide方法里面调用了deviceSupportUninstall 导致document的事件被卸载,所以第二次打开没法使用esc关闭预览

@element-bot
Copy link
Member

Deploy preview for element ready!

Built with commit efc5189

https://deploy-preview-19027--element.netlify.com

@giligiliduang giligiliduang changed the title Image: fix then Esc can never close the preview at the second time #1… Image: fix Esc can never close the preview at the second time #1… Mar 24, 2020
CarterLi added a commit to CarterLi/element that referenced this pull request Mar 28, 2020
1.  set preview `:initial-index` to `0` if src is not in previewSrcList
and also fix preview example
2. fix ESC won't close preview for the second time
ElemeFE#19027
ElemeFE#18906
3. fix undesired `overflow: scroll` style
ElemeFE#18967
4. fix a race condition if src changes too frequently
https://github.com/ElemeFE/element/pull/18837/files
5. add `close-on-click-modal` prop
https://github.com/ElemeFE/element/pull/18947/files
CarterLi added a commit to CarterLi/element that referenced this pull request Mar 30, 2020
1.  set preview `:initial-index` to `0` if src is not in previewSrcList
and also fix preview example
2. fix ESC won't close preview for the second time
ElemeFE#19027
ElemeFE#18906
3. fix undesired `overflow: scroll` style
ElemeFE#18967
4. fix a race condition if src changes too frequently
https://github.com/ElemeFE/element/pull/18837/files
5. add `close-on-click-modal` prop
https://github.com/ElemeFE/element/pull/18947/files
CarterLi added a commit to CarterLi/element that referenced this pull request Mar 30, 2020
1.  set preview `:initial-index` to `0` if src is not in previewSrcList
ElemeFE#18871
and also fix preview example
2. fix ESC won't close preview for the second time
ElemeFE#19027
ElemeFE#18906
3. fix undesired `overflow: scroll` style
ElemeFE#18967
4. fix a race condition if src changes too frequently
ElemeFE#18837
5. add `close-on-click-modal` prop
ElemeFE#18947
ZJL8 pushed a commit to EOITek/element that referenced this pull request Mar 30, 2020
1.  set preview `:initial-index` to `0` if src is not in previewSrcList
ElemeFE#18871
and also fix preview example
2. fix ESC won't close preview for the second time
ElemeFE#19027
ElemeFE#18906
3. fix undesired `overflow: scroll` style
ElemeFE#18967
4. fix a race condition if src changes too frequently
ElemeFE#18837
5. add `close-on-click-modal` prop
ElemeFE#18947
@luckyCao luckyCao modified the milestones: 2.13.0, 2.13.1 Apr 10, 2020
@stale
Copy link

stale bot commented Jun 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 9, 2021
@stale stale bot closed this Jun 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants