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]Select组件或DatePicker组件 和Dropdown组件同时存在时,Dropdown组件下拉内容无法鼠标拖动滚动条,会直接触发clickouside #32

Closed
yaomingdan opened this issue Oct 12, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@yaomingdan
Copy link

Environment

win10/Chrome/vue2.6

Reproduction link

https://run.iviewui.com/z72Kgfu4

Steps to reproduce

Select组件或DatePicker组件 和Dropdown组件同时存在时,Dropdown组件下拉内容无法鼠标拖动滚动条,会直接触发clickouside
EN:When a Select component or a DatePicker component and a Dropdown component exist at the same time, the Dropdown component drop-down content cannot drag the scroll bar with the mouse, which triggers clickouside directly.

What is expected?

Select组件或DatePicker组件 和Dropdown组件同时存在时,Dropdown组件下拉内容可以通过鼠标下拉拖动滚动条
EN:When a Select component or a DatePicker component coexists with a Dropdown component, Dropdown component drop-down content can be dragged and scrolled through the mouse.

What is actually happening?

Select组件或DatePicker组件 和Dropdown组件同时存在时,Dropdown组件下拉内容无法鼠标拖动滚动条,会直接触发clickouside
EN:When a Select component or a DatePicker component and a Dropdown component exist at the same time, the Dropdown component drop-down content cannot drag the scroll bar with the mouse, which triggers clickouside directly.

@yaomingdan
Copy link
Author

感觉这个clickouside directive,很多下拉组件会互相影响,包括cascader也是无法点击下级字段,单独用都正常

@wandway
Copy link

wandway commented Oct 13, 2019

在Modal弹出时Select的option列表超出Modal区域也会显示不出来。

@yaomingdan
Copy link
Author

4.0.1版本应该还是没有解决组件间互相影响的问题,当全局capture设置为false的时候,Select组件和Dropdown组件同时存在,该bug依旧会发生 @icarusion

@icarusion
Copy link
Member

昨天 iview-run 没更新,现在已经到 4.0.1 了,你再刷新看看

@yaomingdan
Copy link
Author

yaomingdan commented Oct 16, 2019

嗯,这种情况是可行的,但是在capture全局设置为false或者其他组件设置capture 为false的情况下,该问题依旧存在,具体我修改了一下代码,你看看 https://run.iviewui.com/nqJxMQmI @icarusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants