Skip to content

Commit

Permalink
EuiColorPicker onBlur & onFocus fns are optional (#1993)
Browse files Browse the repository at this point in the history
* callback fns are optional

* #1993 CL entry

* CL update
  • Loading branch information
thompsongl authored Jun 4, 2019
1 parent a1e1235 commit d0a1eef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
4 changes: 2 additions & 2 deletions src/components/color_picker/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLAttributes<HTMLDivElement>, keyof HTMLDivElementOverrides> &
Expand Down

0 comments on commit d0a1eef

Please sign in to comment.