Skip to content

Commit

Permalink
Positioning wrapper div gets no pointer events
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilian authored Jan 26, 2021
1 parent 854c4e2 commit b441274
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

0 comments on commit b441274

Please sign in to comment.