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

ResizeObserver is not defined in chrome low version like chrome64 #4508

Closed
1 task
iYogic opened this issue Aug 12, 2021 · 1 comment
Closed
1 task

ResizeObserver is not defined in chrome low version like chrome64 #4508

iYogic opened this issue Aug 12, 2021 · 1 comment
Labels

Comments

@iYogic
Copy link

iYogic commented Aug 12, 2021

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

Version

2.2.0

Environment

chrome53

Reproduction link

https://www.example.com/#no

Steps to reproduce

复现步骤很简单,用官方的2.2.0 以后的版本,挑选其中的select组件,写个demo在chrome64以后的版本内去试试,太明显了

What is expected?

官方能不能在内部全面vc化的时候,注意下,尤其,这个太明显的错误了,element、vant都在开发时配合上resize-observer-polyfill,希望官方vc-resize-observer这个库尽快解决

What is actually happening?

2.2.0 以后的版本,改版以后,antdsign-vue使用了vc-resize-observer这个库,这个库里里面使用了window.ResizeObserver这个比较新的api,这个新的api不支持chrome64以下的版本,用resize-observer-polyfill可以解决,官方比较有意思,虽然引用了这个库,但是是给内部单元测试用的,而不是,开发vc-resize-observer的时候去用,这样就导致,低版本的chrome根本没办法使用2.2.0 的版本【要知道,整个微信生态的内核都是chrome53还有些特殊环境都是低版本chrome,这样官方的这个库就放弃了一大片市场】【有意思的是,内部的单元测试都知道去polyfill,开发的时候却不去用】

@github-actions
Copy link

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 Aug 13, 2022
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