Skip to content

Commit bbaf192

Browse files
author
yandadaFreedom
committed
feat: input 新增支持keyboard属性
1 parent 98e08dc commit bbaf192

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/webpack-plugin/lib/runtime/components/react

packages/webpack-plugin/lib/runtime/components/react/mpx-input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import {
5454
NativeTouchEvent
5555
} from 'react-native'
5656
import { warn } from '@mpxjs/utils'
57-
import { useUpdateEffect, useTransformStyle, useLayout, extendObject, isIOS, isAndroid, isHarmony } from './utils'
57+
import { useUpdateEffect, useTransformStyle, useLayout, extendObject, isIOS } from './utils'
5858
import useInnerProps, { getCustomEvent } from './getInnerListeners'
5959
import useNodesRef, { HandlerRef } from './useNodesRef'
6060
import { FormContext, FormFieldValue, KeyboardAvoidContext } from './context'
@@ -187,7 +187,7 @@ const Input = forwardRef<HandlerRef<TextInput, FinalInputProps>, FinalInputProps
187187
return ''
188188
}
189189

190-
const keyboardType = (isIOS || isAndroid || isHarmony) ? originalKeyboardType || keyboardTypeMap[type] : keyboardTypeMap[type]
190+
const keyboardType = originalKeyboardType || keyboardTypeMap[type]
191191
const defaultValue = parseValue(value)
192192
const textAlignVertical = multiline ? 'top' : 'auto'
193193

0 commit comments

Comments
 (0)