You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to how other existing components (Dropdown, InputMask, AutoComplete) are possible to have a autofocus property, this could also be a property to the button element.
This can today be done by using angular directives.
Is your feature request related to a problem?
Instead of having to make a new class/file, this could instead be done by just adding a single attribute to the element.
Describe the feature you would like to see added
Similar to how other existing components (Dropdown, InputMask, AutoComplete) are possible to have a autofocus property, this could also be a property to the button element.
This can today be done by using angular directives.
Is your feature request related to a problem?
Instead of having to make a new class/file, this could instead be done by just adding a single attribute to the element.
Describe the solution you'd like
Autofocus enabled:
<p-button [autofocus]="true"></p-button>
Autofocus disabled:
<p-button [autofocus]="false"></p-button>
<p-button></p-button>
Describe alternatives you have considered
New file/class with autodirectives
Additional context
Should not be too much work since this is already implemented in other primeng components.
The text was updated successfully, but these errors were encountered: