Skip to content

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

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

Closed
4 tasks done
binhtran04 opened this issue Apr 9, 2025 · 1 comment · Fixed by #4570
Closed
4 tasks done

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

binhtran04 opened this issue Apr 9, 2025 · 1 comment · Fixed by #4570

Comments

@binhtran04
Copy link

binhtran04 commented Apr 9, 2025

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

@binhtran04 binhtran04 added bug needs triage Initial label given, to be assigned correct labels and assigned labels Apr 9, 2025
@heath-freenome
Copy link
Member

heath-freenome commented Apr 11, 2025

@abdalla-rko I wonder if one of your changes in 5.24.x caused this? Do you have time to investigate?

@heath-freenome heath-freenome added help wanted and removed needs triage Initial label given, to be assigned correct labels and assigned labels Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants