Skip to content

Conversation

@OGHP
Copy link

@OGHP OGHP commented Dec 13, 2018

No description provided.

OGHP added 2 commits December 13, 2018 13:25
… existing text

This package wasn't unusable with React 16 removed deprecation of React.PropTypes
https://github.com/facebook/react/blob/master/CHANGELOG.md#removed-deprecations
Make compatible with new React version 16 and add character count for…
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 3bfc9d9 on OGHP:master into 649b98c on fakiolinho:master.

renderCount() {
const { countLimit } = this.props;
const className = `textarea__count${this.textarea && countLimit && this.textarea.value.length > countLimit ? ' textarea__count--error' : ''}`;
const className = `textarea__count${this.textarea && countLimit && this.textarea.value.length >= countLimit ? ' textarea__count--error' : ''}`;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this change belongs in this pull request.

If anything, it should be extracted out to a separate request. (And I would debate whether it should be accepted, because if the limit is 100 and there are 100 characters, that should be valid, shouldn't it?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants