Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property [autofocus] not working on InputMask component #11783

Closed
quranc opened this issue Aug 5, 2022 · 1 comment
Closed

Property [autofocus] not working on InputMask component #11783

quranc opened this issue Aug 5, 2022 · 1 comment

Comments

@quranc
Copy link
Contributor

quranc commented Aug 5, 2022

Describe the bug

This is related to #10232 and #11781.
Autofocus do not have any effect.
Autofocus property is spelled as autoFocus for InputMask and autofocus for AutoComplete and Dropdown.
This could be more consist.

Environment

OS: darwin arm64

Reproducer

https://stackblitz.com/edit/github-ush22w?file=src/app/app.component.html

Angular version

14.0.7

PrimeNG version

14.0.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.13.1

Browser(s)

No response

Steps to reproduce the behavior

<p-inputMask mask="99-999999" [(ngModel)]="val1" placeholder="99-999999" [autofocus]="true"></p-inputMask>

<p-inputMask mask="99-999999" [(ngModel)]="val1" placeholder="99-999999" [autofocus]="false"></p-inputMask>

Autofocus does not have any effect on the InputMask, no matter of values.

Expected behavior

Autofocus should focus the InputMask on load when having the attribute [autofocus]="true"

@quranc quranc added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 5, 2022
@cetincakiroglu cetincakiroglu linked a pull request Aug 8, 2022 that will close this issue
@cetincakiroglu cetincakiroglu added the Component: Accessibility Issue or pull request is related to WCAG or ARIA label Aug 8, 2022
@cetincakiroglu cetincakiroglu added this to the 14.Future milestone Aug 8, 2022
@cetincakiroglu cetincakiroglu removed the Component: Accessibility Issue or pull request is related to WCAG or ARIA label Aug 8, 2022
@cetincakiroglu
Copy link
Contributor

Hi,

Since this problem occurs across many components, I'm closing this issue and merging them into one #11807. We'll fix them altogether.

Thanks for your support and report!

@cetincakiroglu cetincakiroglu removed the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 9, 2022
@cetincakiroglu cetincakiroglu removed this from the 14.Future milestone Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants