Skip to content

Commit

Permalink
Fix #3419: Mention update TS def for InputTextarea pops (#3421)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Oct 4, 2022
1 parent e312d0c commit 20e1c31
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions components/lib/mention/mention.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,33 @@ interface MentionSelectParams {
suggestion: any;
}

export interface MentionProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onSelect' | 'onChange' | 'onInput' | 'onFocus' | 'onBlur' | 'ref'> {
export interface MentionProps extends Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'onSelect' | 'onChange' | 'onInput' | 'onFocus' | 'onBlur' | 'ref'> {
autoHighlight?: boolean;
autoResize?: boolean;
children?: React.ReactNode;
delay?: number;
field?: MentionFieldType;
footerTemplate?: MentionFooterTemplateType;
headerTemplate?: MentionHeaderTemplateType;
inputClassName?: string;
inputId?: string;
inputRef?: React.Ref<HTMLInputElement>;
trigger?: MentionTriggerType;
suggestions?: any[];
field?: MentionFieldType;
inputStyle?: object;
inputClassName?: string;
itemTemplate?: MentionItemTemplateType;
panelClassName?: string;
panelStyle?: object;
scrollHeight?: string;
autoHighlight?: boolean;
delay?: number;
headerTemplate?: MentionHeaderTemplateType;
footerTemplate?: MentionFooterTemplateType;
itemTemplate?: MentionItemTemplateType;
suggestions?: any[];
transitionOptions?: CSSTransitionProps;
trigger?: MentionTriggerType;
onBlur?(event: React.FocusEvent<HTMLInputElement>): void;
onChange?(event: React.FormEvent<HTMLInputElement>): void;
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
onHide?(): void;
onInput?(event: React.FormEvent<HTMLInputElement>): void;
onSearch?(e: MentionSearchParams): void;
onSelect?(e: MentionSelectParams): void;
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
onBlur?(event: React.FocusEvent<HTMLInputElement>): void;
onShow?(): void;
onHide?(): void;
children?: React.ReactNode;
}

export declare class Mention extends React.Component<MentionProps, any> {
Expand Down

0 comments on commit 20e1c31

Please sign in to comment.