Skip to content

Updating a Key Creates a New Object Instead of Modifying the Existing One #4948

@BlueBeret

Description

@BlueBeret

Prerequisites

What theme are you using?

core

Version

^5.9.0

Current Behavior

When an object has additional properties and default values, updating it creates a new object with the updated key.

Expected Behavior

The expected behavior is to update the key on the existing object instead of creating a new object with that key.

Steps To Reproduce

demo: https://jam.dev/c/c0f3a17a-7ee7-4e25-8cb7-7f1463ffd972
source: rjsf-team-playground

  1. update the key
  2. instead of updating current object it creates new object with the new updated key

Environment

- OS: Fedora Linux 41
- Node: v16.20.2
- npm: 8.19.4

Anything else?

demo: https://jam.dev/c/c0f3a17a-7ee7-4e25-8cb7-7f1463ffd972
source: rjsf-team-playground

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions