Skip to content

Commit

Permalink
Event API: ensure we pop context for event system fibers (#15599)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored May 9, 2019
1 parent e33e32d commit 3d8b836
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react-reconciler/src/ReactFiberUnwindWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,12 @@ function unwindInterruptedWork(interruptedWork: Fiber) {
case ContextProvider:
popProvider(interruptedWork);
break;
case EventComponent:
case EventTarget:
if (enableEventAPI) {
popHostContext(interruptedWork);
}
break;
default:
break;
}
Expand Down

0 comments on commit 3d8b836

Please sign in to comment.