Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 20216b0

Browse files
committed
Enable preventPhantomEvents
Now we have timeouts as a safety net, this should be fine.
1 parent 82c0d69 commit 20216b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/csstransition.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { withTimeout } from "./composables/withTimeout";
1010
import { withTransitionObserver, WithTransitionObserverProps } from "./composables/withTransitionObserver";
1111
import { withWorkaround } from "./composables/withWorkaround";
1212
import { withDOMNodeCallback, WithDOMNodeCallbackProps } from "./composables/withDOMNodeCallback";
13-
// import { preventPhantomEvents } from "./composables/preventPhantomEvents";
13+
import { preventPhantomEvents } from "./composables/preventPhantomEvents";
1414

1515
export type CSSTransitionDelay = number | { appear?: number; enter?: number; leave?: number };
1616
export type CSSTransitionEventHandler = () => void;
@@ -101,8 +101,7 @@ const enhance = assemble<CSSTransitionInnerProps, CSSTransitionProps>(
101101
withTimeout,
102102
withTransitionObserver,
103103
withWorkaround,
104-
// TODO: needs more investigation and probably a different way to do it.
105-
// preventPhantomEvents,
104+
preventPhantomEvents,
106105
mapPropsToInner,
107106
);
108107

0 commit comments

Comments
 (0)