@mpxjs/webpack-plugin 2.10.16-xp.2 → 2.10.16-xp.3

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 = 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,
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 = false, 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: multiline ? confirmType !== 'return' : confirmHold,
264
+ blurOnSubmit: multiline ? confirmType !== 'return' : !confirmHold,
265
265
  underlineColorAndroid: 'rgba(0,0,0,0)',
266
266
  textAlignVertical: textAlignVertical,
267
267
  placeholderTextColor: placeholderStyle?.color,
@@ -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 = true,
142
+ 'confirm-hold': confirmHold = false,
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: multiline ? confirmType !== 'return' : confirmHold,
452
+ blurOnSubmit: multiline ? confirmType !== 'return' : !confirmHold,
453
453
  underlineColorAndroid: 'rgba(0,0,0,0)',
454
454
  textAlignVertical: textAlignVertical,
455
455
  placeholderTextColor: placeholderStyle?.color,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.16-xp.2",
3
+ "version": "2.10.16-xp.3",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"