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

[Dialog]在 dialog 容器里 使用select 的跟随滚动会存在select弹层被覆盖的问题 #4828

Open
shuihu001 opened this issue Apr 25, 2024 · 1 comment
Assignees

Comments

@shuihu001
Copy link

Component

Dialog

Reproduction link

https://riddle.alibaba-inc.com/riddles/2c1b2f5d

Steps to reproduce

在 dialog 容器里 使用select 的跟随滚动会存在select弹层被覆盖的问题

@kyokaxin kyokaxin added 🐞 Bug Something isn't working Next release issues to close in next release labels Apr 26, 2024
@FairyYang FairyYang self-assigned this Apr 28, 2024
@eternalsky
Copy link
Contributor

感觉这是一个组件库层面上没有办法解决的问题,如果想要跟随滚动的话,就需要把弹层放在可滚动的容器里,而这个容器 overflow 之后又是 scroll。那这个弹层必然被挡住。但是业务上可以做一些调整,比如让 dialog 的滚动容器的可视区域多一些,或者放弃跟随容器滚动,选择 popup 在 document 上的都可以解决这个问题。

@eternalsky eternalsky added 💬 Discussion and removed 🐞 Bug Something isn't working Next release issues to close in next release labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants