passing html attributes to the password input element

UI Components for Vue
Post Reply
mcshaz
Posts: 1
Joined: 18 Nov 2020, 01:55

18 Nov 2020, 02:02

when I have a form design like so:

Code: Select all

      <label for="register-password" class="p-col-12 p-mb-2 p-md-2 p-mb-md-0">Password</label>
      <div class="p-col-12 p-md-10">
        <Password id="register-password" v-model="password" autocomplete="new-password"/>
      </div>
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-at ... nheritance

Is it possible to implement this?

Thank you

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests