-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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 option's list is not closing on click (on clicking icon also) when set to multiple and filterable #11048
Comments
Hey @Leopoldthecoder, what about this, is it suppose to work like that? |
I think you should remove the property of filterable or change another version,version on 2.3.9 fixed this problem |
@Leopoldthecoder dalao close this problem |
Hi @leslieSie, I need the filter functionality and this issue is not solved either in 2.3.9 or 2.4.0. And I updated codepen's element-ui to 2.3.9 for the same. If you want to replicate the issue |
The problem is that if you want Suppose dropdown is closed as you requested, imagine the scenario where user is selecting inputted text with mouse, which triggers click thus closes the dropdown. I doubt this is an appropriate behavior for user-interaction. If you do really need to do so, you can listen on native click event on select, then modify select's internal state. The arrow (caret) implementation seems buggy now. I suppose you are talking about clicking that button fails to close dropdown? |
Hi @wacky6, I also thought that. Take a lookhttp://element.eleme.io/#/en-US/component/select#option-filtering |
Well, in your case |
Yes, you are right @wacky6. |
For those coming here wondering how to CLOSE the dropdown when using Like this: <el-select ref="mySelectRef" v-model="myModel" multiple="multiple" @change="$refs.mySelectRef.blur()">
...
</el-select> |
Element UI version
2.3.7
OS/Browsers version
Windows 7 / Chrome 66.0.3359.139
Vue version
2.5.11
Reproduction Link
https://codepen.io/akki-jat/pen/GdEYyG
Steps to reproduce
Open it then try to close it by clicking on select element
What is Expected?
Select option's list should be closed
What is actually happening?
Select option's list is not closing
The text was updated successfully, but these errors were encountered: