Skip to content

Commit

Permalink
onchange replaces onClick to solve failed prop type fix #126 (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
jugshaurya authored May 27, 2020
1 parent da7b4d8 commit 928f1fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/Events/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ const EventForm = memo(
name="type"
placeholder="Select Event Type"
value={getEventTypeLabel(type)}
onChange={({ value,title,color }) =>
setType({ label:title, value, color })
onChange={({ value, title, color }) =>
setType({ label: title, value, color })
}
options={useMemo(() => types.map(getEventTypeOption), [types])}
/>
Expand Down Expand Up @@ -158,7 +158,7 @@ const EventForm = memo(
name="public"
checked={isPublic}
value={isPublic}
onClick={() => setIsPublic(!isPublic)}
onChange={() => setIsPublic(!isPublic)}
/>
</Form.Group>
</Form>
Expand Down

0 comments on commit 928f1fd

Please sign in to comment.