-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c2a713
commit 315416e
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 comments
on commit 315416e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maxLength 没改完
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function getInputProps(props: AtInputProps): GetInputPropsReturn {
const actualProps = {
type: props.type,
maxLength: props.maxlength, 这是大写。
const { type, maxlength, disabled, password } = getInputProps(this.props);
这里取的是maxlength,小写,还是不对
actualProps
的值是maxLength
,render
中结构赋值取的是maxlength
,导致该值无效。已经有Pull Requesthttps://github.com/NervJS/taro-ui/blob/315416ed0890966fe563308d3365576d48ac356c/packages/taro-ui/src/components/input/index.tsx#L132