Skip to content

Cannot modify an anyOf object field when the defaults are set in the schema #4555

@binhtran04

Description

@binhtran04

Prerequisites

What theme are you using?

core

Version

5.24.8

Current Behavior

I have an object field in my form that takes two options 1 and 2. Option 1 has attributes a, b, c. Option 2 has x, y, z.
The schema defines the field defaults as {x: 0.045, y, 0.0015, z: 0}
The result is that I cannot modify the field when option 2 is selected. For instance, when typing in the x input, it stays at 0.045

Here is the playground link

Image

Expected Behavior

I can edit the x, y, or z inputs

Steps To Reproduce

  1. open the playground link
  2. select the option 2
  3. type some number in the x input

Environment

- OS:Ubuntu
- Node:22
- npm:

Anything else?

I think this is a bug with 5.24.x version.
When I revert to 5.23.2, the field is editable again
No response

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