react-form-builder
react-form-builder copied to clipboard
Signature element resets on resize
Hi, the Signature form element clears when the browser is resized. I searched on the web & think it's probably due to the default behaviours for Canvas elements, and this link has an example of how to fix it: https://stackoverflow.com/questions/11179274/html-canvas-drawing-disappear-on-resizing However I'm not sure where to apply this code to use it on the signature Canvas when the page resizes?
We've been having this issue for people submitting a form on Safari on iDevices: I was able to reproduce the Signature field clearing by opening the side bookmark menu on Safari iPad, but have also seen a screen recording of it happening when a user pressed Submit (& some Safari UI appeared, which I'm guessing sent some sort of resize event to the page).