Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): disable pointer events on fade
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Feb 22, 2019
1 parent 70e6a5a commit c89cea4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/components/LoadingBolt/LoadingBolt.js
Expand Up @@ -68,9 +68,9 @@ class LoadingBolt extends React.PureComponent {
<Transition
native
items={isLoading}
from={{ opacity: 1 }}
enter={{ opacity: 1 }}
leave={{ opacity: 0 }}
from={{ opacity: 1, pointerEvents: 'auto' }}
enter={{ opacity: 1, pointerEvents: 'auto' }}
leave={{ opacity: 0, pointerEvents: 'none' }}
>
{show =>
show &&
Expand Down
6 changes: 3 additions & 3 deletions app/containers/ModalStack.js
Expand Up @@ -63,9 +63,9 @@ function ModalStack(props) {
<Transition
items={modals}
keys={item => item.id}
from={{ opacity: 0 }}
enter={{ opacity: 1 }}
leave={{ opacity: 0 }}
from={{ opacity: 0, pointerEvents: 'auto' }}
enter={{ opacity: 1, pointerEvents: 'auto' }}
leave={{ opacity: 0, pointerEvents: 'none' }}
>
{modal =>
modal &&
Expand Down

0 comments on commit c89cea4

Please sign in to comment.