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: Form submission #24

Merged
merged 3 commits into from
Oct 13, 2024
Merged

Conversation

oseasmoran73
Copy link
Collaborator

@oseasmoran73 oseasmoran73 commented Oct 12, 2024

Description

This PR fixes the following:

  • form submission on apps + profile. Despite required being enabled, there was not a form controller to handle the request. See new output

image

Save
</Button>
</DialogActions>
<form onSubmit={() => handleUpdateProfile(profile.id)}>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed required on all textfields

defaultValue={jobApplication.salaryRange}
/>
<TextField
id="salaryRange"
Copy link
Owner

Choose a reason for hiding this comment

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

Good call to make salary range not a hard requirement

</LocalizationProvider>

<TextField
required
id="description"
Copy link
Owner

Choose a reason for hiding this comment

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

similarly, good call

/>

<DialogContent />
<FormControl sx={{ minWidth: 120 }} variant="standard" size="small">
<InputLabel id="status-label">Status</InputLabel>
<Select
disabled={isNew}
Copy link
Owner

Choose a reason for hiding this comment

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

um....now I see what you meant by setting it default do open. I think this makes over 90% of the use case. I like that.

Copy link
Owner

@januschung januschung left a comment

Choose a reason for hiding this comment

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

Thanks @oseasmoran73 for testing it and making the improvement. Great decision!

@oseasmoran73 oseasmoran73 merged commit c618b6e into januschung:main Oct 13, 2024
1 check passed
@oseasmoran73 oseasmoran73 deleted the fix/submit-form branch October 13, 2024 01:07
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.

2 participants