Skip to content

Values are modified in readonly mode when they are defined with oneOf #4460

@cperotAxway

Description

@cperotAxway

Prerequisites

What theme are you using?

core

Version

5.x

Current Behavior

in readonly mode the dropdown for the oneOf is not disabled.
Changing the value there reset the fields.

Expected Behavior

dropdown should be disabled or at least fields should not be reset.

Steps To Reproduce

  1. open this playground:

Playground readonly

  1. switch the value in the dropdown to Option 2
  2. switch back to Option 1
  3. Values are reset

Environment

- OS: ubuntu 22.04
- Node: 18
- npm:10.8.3

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions