diff --git a/CHANGELOG.md b/CHANGELOG.md index a4f15f7a3f5..a804c3c1d24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Converted `EuiFacetButton` to TypeScript ([#2226](https://github.com/elastic/eui/pull/2226)) +- Adds an optional `onClear` prop to the the `EuiDatePicker` component ([#2235](https://github.com/elastic/eui/pull/2235)) **Bug fixes** diff --git a/src-docs/src/views/date_picker/states.js b/src-docs/src/views/date_picker/states.js index 01f36918d30..b1813e50808 100644 --- a/src-docs/src/views/date_picker/states.js +++ b/src-docs/src/views/date_picker/states.js @@ -40,6 +40,16 @@ export default class extends Component { + this.handleChange(null)} + placeholder="Clearable" + /> + + +