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

Beeing able to set focus on a control #806

Open
Karamuto opened this issue Jul 9, 2018 · 0 comments
Open

Beeing able to set focus on a control #806

Karamuto opened this issue Jul 9, 2018 · 0 comments

Comments

@Karamuto
Copy link
Collaborator

Karamuto commented Jul 9, 2018

I'm submitting a


[ ] Bug / Regression
[x] Feature Request / Proposal
[x?] Question

I'm using


NG Dynamic Forms Version: `X.Y.Z`

[x] Basic UI
[ ] Bootstrap UI  
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[ ] Material  
[ ] NG Bootstrap
[ ] Prime NG

Description

As the title says, it would be great if there was a way to set the focus on a FormControl. Maybe in the same manner as the 'valueUpdates' Subject.

This is not an uncommon case, and I can't see a way to do it with the current state of the library.

An alternative would be to 'expose' the native element with the form model, but I don't know if this is practical / possible. As the Angular API for this is pretty inconvenient as one would need to use the @ViewChild() decorator in every form control to reference the one in use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants