Skip to content

Commit 93337e0

Browse files
authored
Make sure hidden <Appear />s ignore mouse events (#629)
1 parent 58c12bd commit 93337e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/appear.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class Appear extends Component {
2929

3030
Appear.defaultProps = {
3131
transitionDuration: 300,
32-
startValue: { opacity: 0 },
33-
endValue: { opacity: 1 },
32+
startValue: { opacity: 0, pointerEvents: 'none' },
33+
endValue: { opacity: 1, pointerEvents: 'auto' },
3434
easing: 'quadInOut'
3535
};
3636

0 commit comments

Comments
 (0)