Skip to content

Password always has aria-haspopup set to true #8178

@geiregjo

Description

@geiregjo

Describe the bug

Storybook’s accessibility addon identifies problems with the PrimeVue Password component. Currently, the component always sets the aria-haspopup attribute to true, regardless of the feedback property’s value. For correct accessibility implementation, the aria-haspopup attribute should only be applied when the feedback property is set to true.

Pull Request Link

#8179

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/edit/primevue-4-vite-issue-template-fh5sy7qu?file=src%2FApp.vue

Environment

Not applicable.

Vue version

3.5.20

PrimeVue version

4.3.9

Node version

22.x

Browser(s)

Not applicable.

Steps to reproduce the behavior

Not applicable.

Expected behavior

Not applicable.

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