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

undefined value for fields that are not edited #486

Open
sigalalg1 opened this issue Aug 12, 2023 · 1 comment
Open

undefined value for fields that are not edited #486

sigalalg1 opened this issue Aug 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@sigalalg1
Copy link

Describe the bug

Hi,
first of all, thanks for this very useful code! this is very helpful.
I am encountering an issue. after building a form for a json schema object, all fields, including optional, are getting values.
Fields that are not edited are getting undefined values.

This is very problematic in our code.
Can this be configured somehow?

thanks
Sigal

Related version

element-pro-components: 1.2.12

Link to minimal reproduction

No response

Steps to Reproduce the Bug

  1. build a form from simple schema
  2. edit one field
  3. submit
  4. see that all empty fields that were not edited, are sent as undefined

Expected behavior

build a form,
edit only one field
click submit
only one change should appear

Additional context

No response

@tolking tolking added the bug Something isn't working label Aug 13, 2023
@tolking
Copy link
Owner

tolking commented Aug 13, 2023

Currently, you can manually remove the undefined data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants