Skip to content

fix: handle hidden fieldsets#161

Merged
antoniocapelo merged 2 commits intomainfrom
devxp-2848-fix-bug-in-conditional-visibility-from-mr-review
Apr 15, 2025
Merged

fix: handle hidden fieldsets#161
antoniocapelo merged 2 commits intomainfrom
devxp-2848-fix-bug-in-conditional-visibility-from-mr-review

Conversation

@antoniocapelo
Copy link
Collaborator

No description provided.

@antoniocapelo antoniocapelo self-assigned this Apr 14, 2025
@antoniocapelo antoniocapelo marked this pull request as draft April 14, 2025 17:42
@antoniocapelo antoniocapelo marked this pull request as ready for review April 15, 2025 09:44
@antoniocapelo antoniocapelo force-pushed the devxp-2848-fix-bug-in-conditional-visibility-from-mr-review branch from 450a298 to 1c491cf Compare April 15, 2025 09:45
@antoniocapelo antoniocapelo merged commit 22e9e08 into main Apr 15, 2025
2 checks passed
@antoniocapelo antoniocapelo deleted the devxp-2848-fix-bug-in-conditional-visibility-from-mr-review branch April 15, 2025 11:55
const form = createHeadlessForm(conditionalFieldsetSchema, { initialValues: { form: { name: 'admin', password: null } } })
form.handleValidation({ hide_form: 'yes' })

expect(getField(form.fields, 'form')?.isVisible).toBe(false)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

q: If we check form.name, will it also have isVisible: false? No real bug comes to my mind, just wondering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants