diff --git a/CHANGELOG.md b/CHANGELOG.md index aa939384164..81e40f380cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## [`master`](https://github.com/elastic/eui/tree/master) -No public interface changes since `11.3.0`. +**Bug fixes** + +- Fixed optional TS definitions for `EuiColorPicker` `onBlur` and `onFocus` callbacks ([#1993](https://github.com/elastic/eui/pull/1993)) ## [`11.3.0`](https://github.com/elastic/eui/tree/v11.3.0) diff --git a/src/components/color_picker/index.d.ts b/src/components/color_picker/index.d.ts index 896fe7844f6..4c15e4087f7 100644 --- a/src/components/color_picker/index.d.ts +++ b/src/components/color_picker/index.d.ts @@ -26,9 +26,9 @@ declare module '@elastic/eui' { */ interface HTMLDivElementOverrides { color: string; - onBlur: () => void; + onBlur?: () => void; onChange: (hex: string) => void; - onFocus: () => void; + onFocus?: () => void; } export type EuiColorPickerProps = CommonProps & Omit, keyof HTMLDivElementOverrides> &