Skip to content

Commit 67bdc5b

Browse files
authored
Merge pull request #32 from Kilian/patch-2
Positioning wrapper div gets no pointer events
2 parents 854c4e2 + b441274 commit 67bdc5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/toast-bar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ const getPositionStyle = (
6464
}
6565
: {
6666
left: 0,
67-
pointerEvents: 'none',
6867
right: 0,
6968
justifyContent: 'center',
7069
};
@@ -131,13 +130,15 @@ export const ToastBar: React.FC<ToastBarProps> = React.memo(
131130
style={{
132131
display: 'flex',
133132
zIndex: toast.visible ? 9999 : undefined,
133+
pointerEvents: 'none',
134134
...positionStyle,
135135
}}
136136
>
137137
<ToastBarBase
138138
ref={ref}
139139
className={toast.className}
140140
style={{
141+
pointerEvents: 'initial',
141142
...animationStyle,
142143
...toast.style,
143144
}}

0 commit comments

Comments
 (0)