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
modal 内容里select位置错乱 #5395
Comments
I am no sure what your problem is? Could you provide a re-producible demo to help us, by forking and editing this codepen: http://codepen.io/benjycui/pen/KgPZrE?editors=001 (A good and minimum codpen will save a lot of time 😃) |
It will be better if you read smart questions(提问的智慧). |
codepan 地址: demo |
Environment(required)
|
这是两个问题还是同一个问题? |
是一个问题, 如果给 |
https://ant.design/components/select-cn/#API 看看 |
ref #3487 |
那如果弹出 |
就在这里讨论即可。 html 会滚动一般是全局样式没设好,看看能否在 codepen 里重现出来? |
在刚才的那个code demo中 滑动鼠标轮 可以看到 |
找了一个鼠标还是没重现出来.. 😓 另外这段代码是参考自 bootstrap:http://getbootstrap.com/javascript/#modals 它也没有给 html 去加 |
visible 是你控制的,在 visible 被 setState 时去操作 dom 即可。 |
我这么想过, 但是我有好几个modal的 不能在每个地方都去操作吧 . |
封装一个 Modal 来调用。 这个问题看上去很奇怪,我找台 windows 机器试试,感觉滚动条不应该出现。 |
谢谢你的耐心解答, 祝 ant-design 越来越好 💯 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Modal 弹出后我能通过什么方法来给
html
添加overflow: hidden
防止页面滚动目前只是给
body
添加了overflow: hidden
但是页面内容还是可以滚动的.modal
中如果有select
就会导致位置错乱.Hope to answer as soon as possible, will be appreciated .
The text was updated successfully, but these errors were encountered: