-
Notifications
You must be signed in to change notification settings - Fork 567
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
OnChange isn't working when set async (Like on an RXJS subject) #277
Comments
I see it get added to the object...
|
I think there can be two solutions to this issue.
Please provide a plnkr. |
1.) I can't do this because I am loading via require like this 2.) I am confused as to how this would work because wouldn't it just be adding the form element? It seems strange that I wouldn't be able to add the function this way since I can add options just fine. The plunker is a bit cooky because of the webpack require, but I can try to throw something together. Thank you! |
P.S. (Dumb question)do we have a plunkr template for ng2-formly? |
@jrgleason use any plnkr from the website https://ng2.angular-formly.com/guides/ or use our template http://plnkr.co/edit/1siQrBH4CDUSzaDRFMO7?p=preview |
I tried copying the options and change settings over to my local still no dice. I noticed you had...
vs my
When I try the Array version I see...
could I just have an old version of the formly beta 13 library? |
Ok based on the Typescript message I added the change this way instead...
|
Ok sorry about all that I finally got it to fail using plunker http://plnkr.co/edit/yvS90EYSEpYPXy0BRZ7s?p=preview I think it has something to do with the RxJS I am using. But again it is weird that the options work fine. |
I must be wrong about the cause because removing RxJS does not seem to help.... http://plnkr.co/edit/iNJU7iD5XXHxyLI23rlb?p=preview If I convert it back to the old template one it works again so it has to be something in the way I am configuring stuff. However, I can't really see a difference. |
Ok I have it and I will update the title. With
It no longer works. It looks like it is an issue with trying to set them async http://plnkr.co/edit/OfcprFL35FxG3cHpF0Hz?p=preview I am still getting
when I try to transpile with webpack though so I have to do |
Can you provide a plnkr for |
I'm submitting a ... (check one with "x")
Current behavior
I have the following code
Expected behavior
per the pull request provided here it seems this should fire the console when I select an item.
However, the options are mapped properly.
Minimal reproduction of the problem with instructions
I need to fire an event when my select changes.
What is the motivation / use case for changing the behavior?
I need to be able to tell when an item is selected.
typescript
The text was updated successfully, but these errors were encountered: