Skip to content

Commit

Permalink
Merge pull request #32 from Kilian/patch-2
Browse files Browse the repository at this point in the history
Positioning wrapper div gets no pointer events
  • Loading branch information
timolins authored Feb 2, 2021
2 parents 854c4e2 + b441274 commit 67bdc5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/toast-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const getPositionStyle = (
}
: {
left: 0,
pointerEvents: 'none',
right: 0,
justifyContent: 'center',
};
Expand Down Expand Up @@ -131,13 +130,15 @@ export const ToastBar: React.FC<ToastBarProps> = React.memo(
style={{
display: 'flex',
zIndex: toast.visible ? 9999 : undefined,
pointerEvents: 'none',
...positionStyle,
}}
>
<ToastBarBase
ref={ref}
className={toast.className}
style={{
pointerEvents: 'initial',
...animationStyle,
...toast.style,
}}
Expand Down

1 comment on commit 67bdc5b

@vercel
Copy link

@vercel vercel bot commented on 67bdc5b Feb 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.