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

Clicking dropdown doesn't work if using selected-option slot. #882

Closed
marbuser opened this issue May 23, 2019 · 5 comments · Fixed by #992
Closed

Clicking dropdown doesn't work if using selected-option slot. #882

marbuser opened this issue May 23, 2019 · 5 comments · Fixed by #992
Assignees
Projects

Comments

@marbuser
Copy link

Describe the bug
When using the selected-option slot, if you click the text section of the dropdown, it will not open. If you don't use this slot, it works perfectly fine.

https://codesandbox.io/embed/vue-template-m8i3y

Expected behavior
It should function like the first example in my example. The second one does not function properly.

@sagalbot sagalbot added the bug label Jun 2, 2019
@sagalbot sagalbot self-assigned this Jun 2, 2019
@sagalbot sagalbot added this to To do in v3 via automation Jun 2, 2019
@benjamindavid
Copy link

Experiencing the same thing here, any idea how we can get around the bug until it's fixed? Thanks!

@benjamindavid
Copy link

Replicating the behavior like this seems to be working:

if (!this.$refs.vSelect.open) {
    this.$refs.vSelect.open = true;
    this.$refs.vSelect.searchEl.focus();
}

@seyfer
Copy link

seyfer commented Oct 23, 2019

We are experiencing the same issue with this code

                if (!this.open) {
                    this.$refs.vSelect.$refs.search.focus();
                } else {
                    this.$refs.vSelect.$refs.search.blur();
                }
                this.open = !this.open;

v3 automation moved this from To do to Done Nov 14, 2019
@seyfer
Copy link

seyfer commented Jan 16, 2020

@sagalbot this issue needs to be fixed for 2.6 version too. Not all users can migrate to v3 fast.

@sagalbot
Copy link
Owner

@seyfer I would accept a pull request. I don't currently have the capacity to maintain multiple versions.

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

Successfully merging a pull request may close this issue.

4 participants