@@ -17,10 +17,10 @@ import isTextInputElement from '../isTextInputElement';
17
17
import { canUseDOM } from 'shared/ExecutionEnvironment' ;
18
18
19
19
import {
20
- TOP_BLUR ,
20
+ TOP_FOCUS_OUT ,
21
21
TOP_CHANGE ,
22
22
TOP_CLICK ,
23
- TOP_FOCUS ,
23
+ TOP_FOCUS_IN ,
24
24
TOP_INPUT ,
25
25
TOP_KEY_DOWN ,
26
26
TOP_KEY_UP ,
@@ -42,10 +42,10 @@ import {
42
42
43
43
function registerEvents ( ) {
44
44
registerTwoPhaseEvent ( 'onChange' , [
45
- TOP_BLUR ,
46
45
TOP_CHANGE ,
47
46
TOP_CLICK ,
48
- TOP_FOCUS ,
47
+ TOP_FOCUS_IN ,
48
+ TOP_FOCUS_OUT ,
49
49
TOP_INPUT ,
50
50
TOP_KEY_DOWN ,
51
51
TOP_KEY_UP ,
@@ -172,7 +172,7 @@ function handlePropertyChange(nativeEvent) {
172
172
}
173
173
174
174
function handleEventsForInputEventPolyfill ( topLevelType , target , targetInst ) {
175
- if ( topLevelType === TOP_FOCUS ) {
175
+ if ( topLevelType === TOP_FOCUS_IN ) {
176
176
// In IE9, propertychange fires for most input events but is buggy and
177
177
// doesn't fire when text is deleted, but conveniently, selectionchange
178
178
// appears to fire in all of the remaining cases so we catch those and
@@ -185,7 +185,7 @@ function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
185
185
// missed a blur event somehow.
186
186
stopWatchingForValueChange ( ) ;
187
187
startWatchingForValueChange ( target , targetInst ) ;
188
- } else if ( topLevelType === TOP_BLUR ) {
188
+ } else if ( topLevelType === TOP_FOCUS_OUT ) {
189
189
stopWatchingForValueChange ( ) ;
190
190
}
191
191
}
@@ -304,7 +304,7 @@ function extractEvents(
304
304
}
305
305
306
306
// When blurring, set the value attribute for number inputs
307
- if ( topLevelType === TOP_BLUR ) {
307
+ if ( topLevelType === TOP_FOCUS_OUT ) {
308
308
handleControlledInputBlur ( ( ( targetNode : any ) : HTMLInputElement ) ) ;
309
309
}
310
310
}
0 commit comments