Closed 188599 closed 1 year ago
I just found ngx-sub-form.mjs
on Chrome's Devtools. I'm gonna see if I can figure out the issue. I don't know how I missed that before. 🤦♂️
Keeping the issue open for now, will close later or add more details once I figure out the problem.
Figured out the problem.
I was just trying to submit a form without making any changes, but there's this equality check before emitting.
I guess it wouldn't make much sense to submit the form back without any value changes. I'm closing the issue.
Nice debugging @188599.
You may want to follow https://github.com/cloudnc/ngx-sub-form/pull/290 and https://github.com/cloudnc/ngx-sub-form/issues/289
I'm having some trouble figuring out why the form is not emitting it's value to the
output$
subject after invokingmanualSave$
. It works as intended for anything but one specific form entry, when trying to edit it.At the moment when
manualSave$
emits, I make sure the form is valid. Also it does not seem to change states, which I checked by subscribing toformGroup.statusChanges
.This is the method I call for when attempting to submit the form.
I can't really find a way to properly debug the code from the library and even looking through the code I didn't find any other caveats that might be causing this issue for me.
I also tried cloning this repository and using it as a local dependency to enable proper debugging, but I'm running on some issues when trying to compile my project, due to some mismatch with angular versions that I'm not quite sure how to resolve.
Any ideas on how to proceed with this would be appreciated.