-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.24.1
Current Behavior
When I create a property dependency and the dependent property is an array with multiple options whose options change based on the dependency, if I start to select options, then switch the dependent field, the formdata does not clear the invalid options.
Expected Behavior
Invalid array options are cleared when the available list of options changes
Steps To Reproduce
- Create a property with a selectable option, say product type {'fruit', 'dairy'}
- Create a dependent property that is an array whose options change, 'fruit' -> 'apple', 'banana' and 'dairy' -> 'milk', 'cheese'
- Selecting 'apple' then switching to 'dairy' leaves a user in an uncorrectable state because 'apple' stays in the form data
See the video of me demonstrating it with the Playground Sandbox
Screen.Recording.2025-01-23.at.9.47.20.AM.mov
Environment
- OS:
- Node:
- npm:
Anything else?
No response
hanselke