Skip to content

Commit

Permalink
Other: fix disabled delete button on demo
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi committed Mar 26, 2019
1 parent b2c185e commit 4aed44f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const defaultSchedule: ScheduleType = rangeStrings.map(
);

const EventRoot = React.forwardRef<any, EventRootProps>(function EventRoot(
{ handleDelete, ...props },
{ handleDelete, disabled, ...props },
ref,
) {
return (
Expand All @@ -69,14 +69,15 @@ const EventRoot = React.forwardRef<any, EventRootProps>(function EventRoot(
hideOnClick={false}
className={demoClasses.tooltip}
content={
<button onClick={handleDelete}>
<button disabled={disabled} onClick={handleDelete}>
<DeleteIcon className={demoClasses.icon} />
Delete
</button>
}
>
<DefaultEventRootComponent
handleDelete={handleDelete}
disabled={disabled}
{...props}
ref={ref}
/>
Expand Down

0 comments on commit 4aed44f

Please sign in to comment.