We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am using React & Redux. I copied your sample code from Readme and got this error message saying
#index.js:1 Warning: Failed prop type: Invalid prop inputMaxLength of type string supplied to EditableLabel, expected number. at EditableLabel (http://localhost:3000/static/js/0.chunk.js:150704:7) at CommentDetailForMedia (http://localhost:3000/static/js/main.chunk.js:2201:5
inputMaxLength
string
EditableLabel
number
my code is
<EditableLabel text={this.props.comment.text} labelClassName='media-comments-detail' inputClassName='media-comments-detail-edit' inputMaxLength='144' onFocus={this._handleFocus} onFocusOut={this._handleFocusOut} />
The functionality works, it is just the console has error messages. I have also tried to
I think it is because you set the type of inputMaxLength to number but it is reading as a string...?
Appreciate if you can help!
The text was updated successfully, but these errors were encountered:
Just change the output to this: inputMaxLength={144}. Your example aligned:
inputMaxLength={144}
<EditableLabel text={this.props.comment.text} labelClassName='media-comments-detail' inputClassName='media-comments-detail-edit' inputMaxLength={144} onFocus={this._handleFocus} onFocusOut={this._handleFocusOut} />
Sorry, something went wrong.
No branches or pull requests
Hi,
I am using React & Redux. I copied your sample code from Readme and got this error message saying
#index.js:1 Warning: Failed prop type: Invalid prop
inputMaxLength
of typestring
supplied toEditableLabel
, expectednumber
.at EditableLabel (http://localhost:3000/static/js/0.chunk.js:150704:7)
at CommentDetailForMedia (http://localhost:3000/static/js/main.chunk.js:2201:5
my code is
The functionality works, it is just the console has error messages.
I have also tried to
I think it is because you set the type of inputMaxLength to number but it is reading as a string...?
Appreciate if you can help!
The text was updated successfully, but these errors were encountered: