Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In signature component, when we do sign and save, there others component getting deleted. #1540

Open
sauravagrawal opened this issue Mar 20, 2023 · 3 comments

Comments

@sauravagrawal
Copy link

sauravagrawal commented Mar 20, 2023

I am using form builder there onChange method I am saving all the component in a variable.
I am facing one issue if I drag signature component from Advanced and try to sign via mouse then It's deleting all the others components which I pulled and saved earlier.

Could you please help me on this?

@brendanbond
Copy link
Contributor

Hey @sauravagrawal thanks for opening this issue. This is almost certainly a formio.js issue, but can you please provide more detailed steps to reproduce, as well as the versions of the software you're using?

@sauravagrawal
Copy link
Author

Hi @brendanbond, Thanks for your reply :)
I am using below versions of the software:

"@formio/react": "^5.2.4-rc.1",
"react": "^17.0.0",

Steps to reproduce this issue:

  1. Try to create a simple form without signature component and It's providing us JSON code with all the component which I dragged earlier.

  2. Now try to add signature component.

  3. On Change method, I got all the component's JSON and save this JSON anywhere.

  4. Now please try to load form builder again with same JSON which saved. It will load same form which was designed earlier.

  5. Then don't do anything in form and try to sign only in signature box, see below:
    image

  6. Now check JSON, which you called It's all deleting after sign. I'm using onChange method to see JSON after doing changes.
    Thanks

@daneformio
Copy link

Can you provide us with a form json that includes your On Change method to get the json?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants