Skip to content

Provide a "clearable" option to EuiFieldSearch to support deleting the contents #1769

@wylieconlon

Description

@wylieconlon

This is useful for filter-type searches, where the user might need to reset their filters to get back to the default state.

I imagine the presentation of this would take the form of a "clear" button and Esc keybindings, and in terms of API I would expect the default to be false. Something like:

<EuiFieldSearch value={state.filterText} onChange={this.onChange} clearable={true} />

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions