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

Convert Form components to typescript #5170

Merged
merged 2 commits into from
Aug 20, 2020
Merged

Convert Form components to typescript #5170

merged 2 commits into from
Aug 20, 2020

Conversation

fzaninotto
Copy link
Member

Refs #4505

@fzaninotto fzaninotto added the RFR Ready For Review label Aug 19, 2020
@@ -150,17 +152,17 @@ const FormWithRedirect: FC<FormWithRedirectOwnProps & FormProps> = ({
export interface FormWithRedirectOwnProps {
defaultValue?: any;
record?: Record;
save: (
save?: (
Copy link
Contributor

Choose a reason for hiding this comment

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

We really should rename this to onSubmit imo

Copy link
Member Author

Choose a reason for hiding this comment

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

that'd be a breaking change... Perhaps in a future major.

Copy link
Contributor

Choose a reason for hiding this comment

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

Support both with a warning ?

@djhi djhi added this to the 3.8.2 milestone Aug 20, 2020
@djhi djhi merged commit 3a04918 into master Aug 20, 2020
@djhi djhi deleted the form-typescript branch August 20, 2020 06:52
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.

None yet

2 participants