Versions
Describe the bug
While destroying a component containing the validation provider (I.E. a modal) removeProvider is called and provider.name is causing "TypeError: Cannot read property 'name' of undefined", since provider is not defined.
A check on the provider definition should be done before deleting the reference.
I think you mean 3.0.4?
I think this is because of 7a4b81848627ec5f3c58b0730976ee995b6aa137 however the check should be redundant as the provider should always exist. Could you provide a sample so I better understand what is going on?
Hi @logaretm,
thanks for the quick reply. :)
npm is pulling 3.0.3, (at least that's what I read on the package-lock.json, I might have some issue with it.
For some reason, removeProvider gets called twice, and the first time the provider object is there, the second it comes undefined.
I will provide an example as soon as possible.
I played around with various tests and there could be a case where the provider would be removed twice if you are using the persist option or keep-alive component.
I have patched it for now.
Most helpful comment
I played around with various tests and there could be a case where the provider would be removed twice if you are using the
persistoption orkeep-alivecomponent.I have patched it for now.