@mpxjs/webpack-plugin 2.10.16-xp.1 → 2.10.16-xp.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -52,7 +52,7 @@ const keyboardTypeMap = {
|
|
|
52
52
|
digit: isIOS ? 'decimal-pad' : 'numeric'
|
|
53
53
|
};
|
|
54
54
|
const Input = forwardRef((props, ref) => {
|
|
55
|
-
const { style = {}, allowFontScaling = false, type = 'text', value, password, 'placeholder-style': placeholderStyle = {}, disabled, maxlength = 140, 'cursor-spacing': cursorSpacing = 0, 'auto-focus': autoFocus, focus, 'confirm-type': confirmType = 'done', 'confirm-hold': confirmHold =
|
|
55
|
+
const { style = {}, allowFontScaling = false, type = 'text', value, password, 'placeholder-style': placeholderStyle = {}, disabled, maxlength = 140, 'cursor-spacing': cursorSpacing = 0, 'auto-focus': autoFocus, focus, 'confirm-type': confirmType = 'done', 'confirm-hold': confirmHold = true, cursor, 'cursor-color': cursorColor, 'selection-start': selectionStart = -1, 'selection-end': selectionEnd = -1, 'enable-var': enableVar, 'external-var-context': externalVarContext, 'parent-font-size': parentFontSize, 'parent-width': parentWidth, 'parent-height': parentHeight, 'adjust-position': adjustPosition = true, bindinput, bindfocus, bindblur, bindconfirm, bindselectionchange,
|
|
56
56
|
// private
|
|
57
57
|
multiline, 'auto-height': autoHeight, bindlinechange } = props;
|
|
58
58
|
const formContext = useContext(FormContext);
|
|
@@ -261,7 +261,7 @@ const Input = forwardRef((props, ref) => {
|
|
|
261
261
|
autoFocus: !!autoFocus || !!focus,
|
|
262
262
|
selection: selectionStart > -1 || typeof cursor === 'number' ? selection : undefined,
|
|
263
263
|
selectionColor: cursorColor,
|
|
264
|
-
blurOnSubmit:
|
|
264
|
+
blurOnSubmit: multiline ? confirmType !== 'return' : confirmHold,
|
|
265
265
|
underlineColorAndroid: 'rgba(0,0,0,0)',
|
|
266
266
|
textAlignVertical: textAlignVertical,
|
|
267
267
|
placeholderTextColor: placeholderStyle?.color,
|
|
@@ -273,7 +273,7 @@ const Input = forwardRef((props, ref) => {
|
|
|
273
273
|
onChange,
|
|
274
274
|
onSelectionChange,
|
|
275
275
|
onContentSizeChange,
|
|
276
|
-
onSubmitEditing: bindconfirm &&
|
|
276
|
+
onSubmitEditing: bindconfirm && onSubmitEditing
|
|
277
277
|
}, !!multiline && confirmType === 'return' ? {} : { enterKeyHint: confirmType }), [
|
|
278
278
|
'type',
|
|
279
279
|
'password',
|
|
@@ -139,7 +139,7 @@ const Input = forwardRef<HandlerRef<TextInput, FinalInputProps>, FinalInputProps
|
|
|
139
139
|
'auto-focus': autoFocus,
|
|
140
140
|
focus,
|
|
141
141
|
'confirm-type': confirmType = 'done',
|
|
142
|
-
'confirm-hold': confirmHold =
|
|
142
|
+
'confirm-hold': confirmHold = true,
|
|
143
143
|
cursor,
|
|
144
144
|
'cursor-color': cursorColor,
|
|
145
145
|
'selection-start': selectionStart = -1,
|
|
@@ -449,7 +449,7 @@ const Input = forwardRef<HandlerRef<TextInput, FinalInputProps>, FinalInputProps
|
|
|
449
449
|
autoFocus: !!autoFocus || !!focus,
|
|
450
450
|
selection: selectionStart > -1 || typeof cursor === 'number' ? selection : undefined,
|
|
451
451
|
selectionColor: cursorColor,
|
|
452
|
-
blurOnSubmit:
|
|
452
|
+
blurOnSubmit: multiline ? confirmType !== 'return' : confirmHold,
|
|
453
453
|
underlineColorAndroid: 'rgba(0,0,0,0)',
|
|
454
454
|
textAlignVertical: textAlignVertical,
|
|
455
455
|
placeholderTextColor: placeholderStyle?.color,
|
|
@@ -461,7 +461,7 @@ const Input = forwardRef<HandlerRef<TextInput, FinalInputProps>, FinalInputProps
|
|
|
461
461
|
onChange,
|
|
462
462
|
onSelectionChange,
|
|
463
463
|
onContentSizeChange,
|
|
464
|
-
onSubmitEditing: bindconfirm &&
|
|
464
|
+
onSubmitEditing: bindconfirm && onSubmitEditing
|
|
465
465
|
},
|
|
466
466
|
!!multiline && confirmType === 'return' ? {} : { enterKeyHint: confirmType }
|
|
467
467
|
),
|