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

Fix attribute binding #26

Open
Voltra opened this issue Feb 1, 2020 · 0 comments
Open

Fix attribute binding #26

Voltra opened this issue Feb 1, 2020 · 0 comments

Comments

@Voltra
Copy link

Voltra commented Feb 1, 2020

When giving HTML attributes to the component (such as name or id), these are attached to the root of the component instead of being attached to the actual input (so that it can properly be used in a form).

There are two solutions :

  • add props that allow to passe name (and optionally id)
  • pass the attributes directly to the input
hasinhayder added a commit to hasinhayder/vue-switches that referenced this issue Jan 16, 2021
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

1 participant