Skip to content

Password:maxlength and autocomplete attributes not working #8247

@mata02

Description

@mata02

Describe the bug

The maxlength and autocomplete attributes don't work in the Password component.

<Form v-slot="$form" :initialValues :resolver @submit="onFormSubmit">
  <Password name="password" :feedback="false" toggleMask fluid maxlength="20" autocomplete="current-password" />
  <Button type="submit" label="Submit" />
</Form>

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/

Environment

Nuxt3.x

Vue version

3.5.22

PrimeVue version

4.4.1

Node version

22.21.1

Browser(s)

No response

Steps to reproduce the behavior

  1. Use Password component
  2. add maxlength="20" autocomplete="current-password"

Expected behavior

You can use HTML attributes in the same way as with the InputText component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions