When you try to destroy any validator, an error is thrown. Has anyone ever encountered this error?
Uncaught Error: The plguin ___frameworkMessage is registered
<anonymous> debugger eval code:1
Can you please provide your code ?
May I know which build are you using? Precompiled theme assets or you build the assets using Gulp or Webpack tasks of Metronic ?
I use metronic precompiled theme assets.
Create any validator the call destroy function, same error should be thrown.
In fact, the error posted is from metronic online documentation (https://preview.keenthemes.com/metronic8/demo1/documentation/forms/formvalidation/basic.html). Simply put a dirty debug breakpoint in basic.js line 185, then call validator.destroy() from console.
We just double checked it with current and its newer v1.0.9 version as well and it seems there is an issue with destroy method. We have reported the issue to the plugin's author and once we have any feedback we will update you accordingly.
We will try to upgrade to FormValidation v1.0.9 and get this issue sorted in the next update of Metronic,
We have a reply from the plugin's author. The bug was reported and fixed in the development version here https://github.com/form-validation/form-validation/issues/64
The official fix will be released in the next update of the Form validation plugin.
If you need this fix urgently you can include it in the source: