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

Password element does not inherit attributes #651

Closed
mcshaz opened this issue Nov 20, 2020 · 1 comment
Closed

Password element does not inherit attributes #651

mcshaz opened this issue Nov 20, 2020 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@mcshaz
Copy link

mcshaz commented Nov 20, 2020

Thank you for an awesome library

When I have a form like this:

      <label for="register-password">Password</label>
      <Password id="register-password" v-model="password" autocomplete="new-password"/>

I get the message in the console

    Extraneous non-props attributes (id, autocomplete) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.
    at <Password id="register-password" modelValue="" onUpdate:modelValue=fn ... >

it seems fairly simple to move the attributes down to the input element:

https://v3.vuejs.org/guide/component-attrs.html#attribute-inheritance

Is it possible to implement this?

Thank you.

@cagataycivici cagataycivici self-assigned this Nov 25, 2020
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 25, 2020
@cagataycivici cagataycivici modified the milestones: 2.2.2, 3.0.2 Nov 25, 2020
@cagataycivici cagataycivici changed the title Password element does not handle id or autocomplete attributes Password element does not inherit attributes Nov 25, 2020
@cagataycivici
Copy link
Member

Resolved now, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants