Skip to content

Submit button not working #7

@cmukoyi

Description

@cmukoyi

The onSubmit functionality for the form has no response when you run the app

This is from the ActivityForm.tsx

<Segment clearing>
<Form onSubmit={handleSubmit} autoComplete='off' >
<Form.Input placeholder='Title' value={activity.title} name ='title' onChange={hanldeInputChange}/>
<Form.TextArea placeholder='Description' value={activity.description} name='description' onChange={hanldeInputChange} />
<Form.Input placeholder='Category' value={activity.category} name='category' onChange={hanldeInputChange} />
<Form.Input type = 'date' placeholder='Date' value={activity.date} name='date' onChange={hanldeInputChange} />
<Form.Input placeholder='City' value={activity.city} name='city' onChange={hanldeInputChange}/>
<Form.Input placeholder='Venue' value={activity.venue} name='venue' onChange={hanldeInputChange}/>
<Button type='submit' loading = {submitting} floated = 'right' positive content = 'Submit' />
<Button onClick={closeForm} floated = 'right' type='button' content = 'Cancel' />
</Form>
</Segment>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions