-
Notifications
You must be signed in to change notification settings - Fork 78
fix:#631 Added condition for default value #918
New issue
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
Conversation
|
Deploy preview for fundamental-react ready! Built with commit b1d036f |
src/SearchInput/SearchInput.js
Outdated
| value: '', | ||
| searchList: this.props.searchList, | ||
| filteredResult: this.props.searchList | ||
| value: props.inputProps && props.inputProps.value ? props.inputProps.value : '', |
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.
We can simplify this to props.inputProps?.value ? props.inputProps.value : '' - same with line 20 :)
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.
Updated.Thanks.
jbadan
left a comment
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.
🚢
Description
Added condition for default value
fixes #631