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

non-unique id #single-select and #input_id #5

Closed
fabien44300 opened this issue Nov 6, 2018 · 3 comments
Closed

non-unique id #single-select and #input_id #5

fabien44300 opened this issue Nov 6, 2018 · 3 comments

Comments

@fabien44300
Copy link

fabien44300 commented Nov 6, 2018

Hello,
I use 2 vue-single-select in the same Vue but each vue-single-select keep the same id :

[DOM] Found 2 elements with non-unique id #single-select
<input data-v-27213e1d id=​"single-select"....>

So, I overrided inputId :

 <vue-single-select
 id="scope_webservice_update"
inputId="scope_webservice_update_inputId"

........

It is ok :

But on clicking to the single-vue-select to choose an option in the view , it's strange, but the id automatically change to "inputId" and override "scope_webservice_update_inputId"

DOM] Found 2 elements with non-unique id #inputId:

Fabien

@robrogers3
Copy link
Owner

So this: id="scope_webservice_update"
won't work, well it will put the id on the top level element, which is a div. I assume you don't want that.

I did find the problem, the code on npm is not quite up to date. I'll push the latest now.

@robrogers3
Copy link
Owner

done. please give it a try.

@robrogers3 robrogers3 reopened this Nov 6, 2018
@robrogers3
Copy link
Owner

Why did I re-open this?

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

No branches or pull requests

2 participants