Skip to content

Commit

Permalink
Fixed prop not displaying for EuiExpression (#3929)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashikmeerankutty authored Aug 17, 2020
1 parent bc6ff6e commit ec671de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/expression/expression.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import React, {
HTMLAttributes,
MouseEventHandler,
ReactNode,
FunctionComponent,
} from 'react';
import classNames from 'classnames';
import { CommonProps, keysOf, ExclusiveUnion } from '../common';
Expand Down Expand Up @@ -99,13 +100,14 @@ export type EuiExpressionProps = CommonProps & {
};

type Buttonlike = EuiExpressionProps &
ButtonHTMLAttributes<HTMLButtonElement> & {
Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> & {
onClick: MouseEventHandler<HTMLButtonElement>;
};

type Spanlike = EuiExpressionProps & HTMLAttributes<HTMLSpanElement>;
type Spanlike = EuiExpressionProps &
Omit<HTMLAttributes<HTMLSpanElement>, 'value'>;

export const EuiExpression: React.FunctionComponent<ExclusiveUnion<
export const EuiExpression: FunctionComponent<ExclusiveUnion<
Buttonlike,
Spanlike
>> = ({
Expand Down

0 comments on commit ec671de

Please sign in to comment.