-
Notifications
You must be signed in to change notification settings - Fork 556
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
defaultValue: null - Cannot read property 'parent' of undefined #2491
Comments
could you please provide a reproduction example, thanks! |
@aitboudad I don't know why I can't reproduce the issue on stackblitz but in local with a minimal stack, it throws the error Cannot read property 'parent' of undefined I think the problem is this logic changed related to the defaultValue v5.10.0...v5.10.1#diff-9b2d3151ef7629725cd42759a64296adR99 |
This issue has been fixed and released as part of v5.10.2 release. Please let us know, in case you are still encountering a similar issue/problem. |
gracias!! |
@aitboudad - I am experiencing similar issue on my end with data-table integration. Just added a screenshot for reference. |
@miko-engr I think there is a bug somewhere but I need a reproduction scenario/example 🙏 in order to fix it also make sure you're using the latest version of Formly. |
I am getting the same issue. I am trying to use the latest next version with primeng. It happens when clicking the datepicker. |
@bandman0226 the mentioned stackblitz is working for me, could you please check it again or maybe I'm missing something 🤔. |
My apologies. It was not working but I got it working after messing with the stackblitz for the datepicker code from the formly site. There were some things missing to run the demo code for that datepicker in stackblitz so I fixed the same on the original one I had trouble with. Thanks again for taking the time to look at it! |
Description
In the version 5.10.1 when the defaultValue is null the ngx-formly-core.js breaks
I think the problem is this logic changed related to the defaultValue v5.10.0...v5.10.1#diff-9b2d3151ef7629725cd42759a64296adR99
Minimal Reproduction
Only set a defaultValue to null in any component
I don't know why I can't reproduce the issue on stackblitz but in local with a minimal stack, it throws that error and breaks the app
Your Environment
The text was updated successfully, but these errors were encountered: