[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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(