[react-interactions] Enable event system before dispatching blur (#17365)

This commit is contained in:
Dominic Gannaway
2019-11-14 13:47:39 +00:00
committed by GitHub
parent fc43644eba
commit df8db4e005
+2 -2
View File
@@ -211,6 +211,8 @@ export function prepareForCommit(containerInfo: Container): void {
export function resetAfterCommit(containerInfo: Container): void {
restoreSelection(selectionInformation);
ReactBrowserEventEmitterSetEnabled(eventsEnabled);
eventsEnabled = null;
if (enableFlareAPI) {
const activeElementDetached = (selectionInformation: any)
.activeElementDetached;
@@ -219,8 +221,6 @@ export function resetAfterCommit(containerInfo: Container): void {
}
}
selectionInformation = null;
ReactBrowserEventEmitterSetEnabled(eventsEnabled);
eventsEnabled = null;
}
export function createInstance(