Skip to content

Commit e19cccb

Browse files
committed
fix: input props maxlength
1 parent c601ebf commit e19cccb

File tree

1 file changed

+2
-2
lines changed
  • packages/taro-ui/src/components/input

1 file changed

+2
-2
lines changed

packages/taro-ui/src/components/input/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ type GetInputPropsReturn = PickAtInputProps & Pick<InputProps, 'type'>
2222
function getInputProps(props: AtInputProps): GetInputPropsReturn {
2323
const actualProps = {
2424
type: props.type,
25-
maxLength: props.maxlength,
25+
maxlength: props.maxlength,
2626
disabled: props.disabled,
2727
password: false
2828
}
2929

3030
switch (actualProps.type) {
3131
case 'phone':
3232
actualProps.type = 'number'
33-
actualProps.maxLength = 11
33+
actualProps.maxlength = 11
3434
break
3535
case 'password':
3636
actualProps.type = 'text'

0 commit comments

Comments
 (0)