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

Keep focus after completing input #79

Open
a-bradaric opened this issue Jun 13, 2022 · 1 comment
Open

Keep focus after completing input #79

a-bradaric opened this issue Jun 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@a-bradaric
Copy link

a-bradaric commented Jun 13, 2022

Hi,

great app, love using it!

I'm wondering if it's possible to remain focused on the input after putting in the last number/character. The use case I have is that I'm wrapping the control inside a form and using (ngSubmit) to trigger a button's submit action, essentially enabling the users to utilize their enter buttons.
However, that only works if the input remains focused.

Is there a property I'm missing here? Or do I need a custom solution?

Edit:
The solution I'm currently using is to listen to the complete event and then programmatically focus the code input field thus enabling ngSubmit. I reckon that's probably the way to go.

@AlexMiniApps
Copy link
Owner

Hi @a-bradaric Thank you for the good words!

The use case I have is that I'm wrapping the control inside a form and using (ngSubmit) to trigger a button's submit action, essentially enabling the users to utilize their enter buttons.

It is interesting case, I will add a setting for it!

@AlexMiniApps AlexMiniApps added the enhancement New feature or request label Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants