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

Fix SimpleForm and TabbedForm do not sanitize the resetOptions prop #8915

Merged
merged 1 commit into from
May 16, 2023

Conversation

slax57
Copy link
Contributor

@slax57 slax57 commented May 16, 2023

Necessary since #8911 which allows the new resetOptions prop

@djhi
Copy link
Collaborator

djhi commented May 16, 2023

Would you mind extracting a sanitizeFormProps function?

@slax57
Copy link
Contributor Author

slax57 commented May 16, 2023

Would you mind extracting a sanitizeFormProps function?

Not so easy to do, because they are not the same, and do not serve the same purpose (SimpleForm passes props to a Stack, while TabbedForm passes props to TabbedFormView, which contains some logic, and has its own sanitize fn) 😬

@djhi djhi added this to the 4.11.0 milestone May 16, 2023
@djhi djhi merged commit a2d9e85 into next May 16, 2023
@djhi djhi deleted the fix-form-prop-sanitation-resetOptions branch May 16, 2023 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants