Skip to content

Fields keep in form data while no needed anymore #4821

@mikitabut

Description

@mikitabut

Prerequisites

What theme are you using?

core

Version

5.24.13

Current Behavior

I have a json schema which have some oneOf properties and when changing them from simple one to item with inner properties I get them rendered, but when I switched back to simple one without this properties this addtional properties is still rendered, but shouldn't anymore

Expected Behavior

I expect to have when changing oneof selected property to simple and complex one the form data will be cleared

Steps To Reproduce

  1. Open sandbox
  2. Change ssl_mode to verify_ca
  3. You will see that some additional fields rendered, which were not presented before
  4. When change this select from verify_ca back to disable you will still see this fields -> BUG

Environment

- OS: Mac OS 15.7.1
- Node: 22.14.0
- npm: 10.9.2

Anything else?

Sanbox link link

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions