[react-interactions] Enable event system before dispatching blur (#17365)
Dominic Gannaway committed
Nov 14, 2019 at 13:47 UTC
df8db4e005573d3cd793f9a6406e97e6014d5545
1 file changed
+2
-2
packages/react-dom/src/client/ReactDOMHostConfig.js
+2
-2
@@ -211,6 +211,8 @@ export function prepareForCommit(containerInfo: Container): void {
211
212
export function resetAfterCommit(containerInfo: Container): void {
213
restoreSelection(selectionInformation);
214
+ ReactBrowserEventEmitterSetEnabled(eventsEnabled);
215
+ eventsEnabled = null;
216
if (enableFlareAPI) {
217
const activeElementDetached = (selectionInformation: any)
218
.activeElementDetached;
@@ -219,8 +221,6 @@ export function resetAfterCommit(containerInfo: Container): void {
221
}
222
}
223
selectionInformation = null;
222
- ReactBrowserEventEmitterSetEnabled(eventsEnabled);
223
- eventsEnabled = null;
224
}
225
226
export function createInstance(