-
Notifications
You must be signed in to change notification settings - Fork 843
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
EuiSearchBox - pass rest to EuiFieldSearch #514
Conversation
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.
Sweet! Great addition! I just one minor request, but it's looking great!
@@ -31,6 +31,16 @@ export class EuiSearchBox extends Component { | |||
} | |||
|
|||
render() { | |||
const { | |||
placeholder, |
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 should probably just use these variables down below since we're defining them (so placeholder={placeholder}
instead of placeholder={this.props.placeholder}
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.
good catch. I replaced all uses of this.props.x with the local variables
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.
LGTM!
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.
LGTM!
CHANGELOG.md
Outdated
@@ -1,6 +1,6 @@ | |||
# [`master`](https://github.com/elastic/eui/tree/master) | |||
|
|||
No public interface changes since `0.0.27`. | |||
- `EuiSearchBox` pass rest to `EuiFieldSearch` ([#514](https://github.com/elastic/eui/pull/514)) |
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.
Can we make this more specific?
`EuiSearchBox` now passes unused props through to `EuiFieldSearch`
Allow consumers of
EuiInMemoryTable
a way to pass attributes toEuiFieldSearch
used inEuiSearchBox