Skip to content

Commit

Permalink
fix: raise onCancel event
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-master committed Jun 12, 2021
1 parent d5f07a4 commit fb54655
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ const Picker: React.FC<PickerProps> = (props) => {

<StyledFooter>
{props.showCancelButton && (
<StyledCancelButton>{props.cancelText}</StyledCancelButton>
<StyledCancelButton onClick={handleClose}>
{props.cancelText}
</StyledCancelButton>
)}
<StyledSubmitButton onClick={handleSubmit}>
{props.submitText}
Expand Down

0 comments on commit fb54655

Please sign in to comment.