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

[Bug Report] 在van-popup上使用scoped的class,不生效 #12326

Closed
Mrmantou opened this issue Sep 28, 2023 · 2 comments · Fixed by #12327
Closed

[Bug Report] 在van-popup上使用scoped的class,不生效 #12326

Mrmantou opened this issue Sep 28, 2023 · 2 comments · Fixed by #12327
Labels
Milestone

Comments

@Mrmantou
Copy link

重现链接

https://codesandbox.io/s/vant-4-issue-template-forked-kwkzff?file=/src/App.vue

Vant 版本

4.7.0

描述一下你遇到的问题。

在van-popup上使用scoped的class,不生效

在2.x版本下的使用是没有问题的

重现步骤

点击button

设备/浏览器

No response

@Mrmantou Mrmantou changed the title [Bug Report] 请在此填写标题 [Bug Report] 在van-popup上使用scoped的class,不生效 Sep 28, 2023
@chenjiahan
Copy link
Member

chenjiahan commented Sep 29, 2023

Popup 使用了 Fragment 和 Teleport,无法正确继承 scopeId,这个是 Vue 3 框架本身存在的 bug,一直没修复,参考:vuejs/core#2669

@chenjiahan
Copy link
Member

下个版本会兼容下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants