This pull request should hopefully fix the "Are you sure you want to leave this page?" warning from appearing on any of the publish forms using the Money Fieldtype.
It was being caused by the code in the mounted method of the fieldtype. I've removed it from there in favour of the code in the preProcess method on the PHP side which looks to be doing exactly the same thing.
This pull request should hopefully fix the "Are you sure you want to leave this page?" warning from appearing on any of the publish forms using the Money Fieldtype.
It was being caused by the code in the
mounted
method of the fieldtype. I've removed it from there in favour of the code in thepreProcess
method on the PHP side which looks to be doing exactly the same thing.Fixes #897