Skip to content

Commit

Permalink
Merge 0410833 into 21c7ade
Browse files Browse the repository at this point in the history
  • Loading branch information
a9 committed Jan 18, 2017
2 parents 21c7ade + 0410833 commit 02722f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/form/textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class TextArea extends Component {
}

render(){
const { className, children, showCounter, maxlength, onChange, ...others } = this.props;
const { className, children, showCounter, maxLength, onChange, ...others } = this.props;
const cls = classNames({
'weui-textarea': true,
[className]: className
Expand All @@ -47,15 +47,15 @@ export default class TextArea extends Component {
<div>
<textarea
className={cls}
maxLength={maxlength}
maxLength={maxLength}
onChange={this.handleChange.bind(this)}
{...others}>
{children}
</textarea>
{
showCounter ?
<div className="weui-textarea-counter">
<span>{this.state.textCounter}</span>{maxlength ? '/' + maxlength : false}
<span>{this.state.textCounter}</span>{maxLength ? '/' + maxLength : false}
</div>
: false
}
Expand Down

0 comments on commit 02722f9

Please sign in to comment.