'TypeScript Form.Control default value
Here is the code:
<Form.Control as="select" {...register('isAccepted', { required: true })} size="sm">
<option value="Accepted">{t('status.accepted')}</option>
<option value="Rejected">{t('status.rejected')}</option>
<option value="Late Submission">{t('status.lateSubmission')}</option>
</Form.Control>
How can i set the default value that is selected? Right now "Accepted" is the default value as the images shows. Even if i change the order in the code, to let's say i put the rejected option first, Accepted is still the default value. image
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
