Skip to content

Commit

Permalink
Add tabindex property to password component (#17624)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaitenjo authored Feb 14, 2025
1 parent 5c502bb commit 9053e87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/primeng/src/password/password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ export const Password_VALUE_ACCESSOR: any = {
[attr.aria-label]="ariaLabel"
[attr.aria-labelledBy]="ariaLabelledBy"
[attr.id]="inputId"
[attr.tabindex]="tabindex"
pInputText
[disabled]="disabled"
[pSize]="size"
Expand Down Expand Up @@ -624,6 +625,11 @@ export class Password extends BaseComponent implements OnInit, AfterContentInit
* @group Props
*/
@Input() variant: 'filled' | 'outlined';
/**
* Index of the element in tabbing order.
* @group Props
*/
@Input({ transform: numberAttribute }) tabindex?: number;
/**
* Callback to invoke when the component receives focus.
* @param {Event} event - Browser event.
Expand Down

0 comments on commit 9053e87

Please sign in to comment.