Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anyOf form data does not update rendered form #3705

Closed
1 task done
spflueger opened this issue May 30, 2023 · 7 comments
Closed
1 task done

anyOf form data does not update rendered form #3705

spflueger opened this issue May 30, 2023 · 7 comments
Labels
any-one-all-of Related to fixing anyOf, oneOf or allOf awaiting response bug help wanted possibly close To confirm if this issue can be closed

Comments

@spflueger
Copy link

Prerequisites

What theme are you using?

core

What is your question?

I found inconsistent behavior of the anyOf field rendering, based on the specified form data. The issue is changing the form data from one anyOf branch to the other does not always seem to update and render the form correctly.

Steps to reproduce: In the playground anyOf example, enter "idCode": "1234" in the form data. Then the form should render the second branch. Then clear the form data and enter "firstName": "asdf", and this the second branch of the form is rendered, but I'm expecting to see the first branch.

@spflueger spflueger added needs triage Initial label given, to be assigned correct labels and assigned question labels May 30, 2023
@tjbugh
Copy link

tjbugh commented May 30, 2023

Could be the same problem as #3693

@spflueger
Copy link
Author

Definitely related, good to mention this thanks @tjbugh. My case would be more general though, so it does not matter if its within an array or not.

@heath-freenome
Copy link
Member

@spflueger I provided a possible fix in the other issue. If you feel adventurous give it a try and let us know if it works!

@heath-freenome heath-freenome added bug awaiting response any-one-all-of Related to fixing anyOf, oneOf or allOf help wanted and removed question needs triage Initial label given, to be assigned correct labels and assigned labels Jun 2, 2023
@spflueger
Copy link
Author

@heath-freenome sweet! Will do (probably beginning of next week)

@spflueger
Copy link
Author

spflueger commented Jun 5, 2023

@heath-freenome I just gave it a try and it looks like the fix from @cwendtxealth solves this issue as well 👍, thanks! What are the plans for a new release?

@heath-freenome
Copy link
Member

@spflueger it is out now. If this is working for you, can you close this issue?

@heath-freenome heath-freenome added the possibly close To confirm if this issue can be closed label Jun 13, 2023
@spflueger
Copy link
Author

spflueger commented Jun 15, 2023

The newest release solves this issue, thanks again @cwendtxealth @heath-freenome !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
any-one-all-of Related to fixing anyOf, oneOf or allOf awaiting response bug help wanted possibly close To confirm if this issue can be closed
Projects
None yet
Development

No branches or pull requests

3 participants