Page reload when closing camera

Hello, I have a problem, I have a page with a form and add image, when I click on the add image button, it opens the camera, I take the picture, it does everything right, but when I close the camera and return to the page it refreshes the page and re-runs the pageInit, so all the data I had in the form is erased, can anyone help me, how do I stop it from refreshing the page?

i use cordova-plugin-camera 5.0.1

android 9.1.0
iOS 6.2.0
framework7 4.0.8

Thanks.

Can you please post the code you’ve been using, so we can see if there are any coding errors.