mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[react-interactions] Enable event system before dispatching blur (#17365)
This commit is contained in:
+2
-2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user