Skip to content

schema with "oneOf" and default value - acts weird #3977

@aodinok

Description

@aodinok

Prerequisites

What theme are you using?

core

Version

5.x

Current Behavior

When using oneOf in schema with default value you need to select oneOf option twice to actually do the change.
First click removes default value, and second does switch:

Screen.Recording.2023-11-27.at.16.09.44.mov

Playground link

Expected Behavior

Switch should happen after first click

Steps To Reproduce

See playground.

Environment

- OS: MacOS, Chrome
- Node: v20.2.0
- npm: 10.2.4

Anything else?

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions