-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): collapsed array state on input change (#9800)
### What? Previously, `initCollapsed: true` `array` fields would auto collapse when typing in their respective inputs while in the create new view. ### Why? This was due to the fact that we were only checking if `preferences` existed in `form state` to handle the current state of the array row and then falling back on the `initCollapsed` prop if `preferences` didn't exist. This was a problem because during create - `preferences` do not exist yet. As a result, the state of the array row would keep falling back to collapsed if `initCollapsed` was set to `true`. ### How? To fix this, we now check the actual form state first before falling back to preferences and then falling back to the initCollapsed prop value. Fixes #9775
- Loading branch information
1 parent
10eab87
commit 62fc2f5
Showing
3 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters