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

How to get "focus" event working on dynamic-material-form elements? #778

Closed
fbayanati opened this issue Jun 4, 2018 · 3 comments
Closed

Comments

@fbayanati
Copy link

I'm submitting a


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

I'm using


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

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

Description

Would you please take a look into the following stalkblitz?:
https://stackblitz.com/edit/angular-m47ebl

  • The focus event doesn't happen.
  • The blur event happens on some form controls such as DynamicInputModel input text but not in many other ones.

Wonderful library and thanks again about it.

@udos86
Copy link
Owner

udos86 commented Jun 7, 2018

@fbayanati

Thanks for reporting this bug! I'll deliver a quick fix!

@udos86
Copy link
Owner

udos86 commented Jun 7, 2018

Please note that according to the official docs not all Material UI components do support focus and blur events.

@udos86 udos86 closed this as completed in 06e2036 Jun 7, 2018
@fbayanati
Copy link
Author

Yes, you are right, the (matEvent) on dynamic-material-form somehow helps, plus about change event it doesn't work for all UI components too which I ended up by getting changes currently through subscribing the .valueChanges in UI elements.

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