Skip to content
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

Merged
merged 4 commits into from
Mar 15, 2018
Merged

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Mar 14, 2018

Allow consumers of EuiInMemoryTable a way to pass attributes to EuiFieldSearch used in EuiSearchBox

Copy link
Contributor

@chrisronline chrisronline left a 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,
Copy link
Contributor

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}

Copy link
Contributor Author

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

Copy link
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@cjcenizal cjcenizal left a 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))
Copy link
Contributor

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`

@nreese nreese merged commit 74cd1cd into elastic:master Mar 15, 2018
@snide snide added the bug label Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants