From 20e1c312914211e39a219131ff4c1f3cf53a0e35 Mon Sep 17 00:00:00 2001 From: Melloware Date: Tue, 4 Oct 2022 17:00:05 -0400 Subject: [PATCH] Fix #3419: Mention update TS def for InputTextarea pops (#3421) --- components/lib/mention/mention.d.ts | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/components/lib/mention/mention.d.ts b/components/lib/mention/mention.d.ts index c352f11b15..61d1309edf 100644 --- a/components/lib/mention/mention.d.ts +++ b/components/lib/mention/mention.d.ts @@ -28,32 +28,33 @@ interface MentionSelectParams { suggestion: any; } -export interface MentionProps extends Omit, HTMLDivElement>, 'onSelect' | 'onChange' | 'onInput' | 'onFocus' | 'onBlur' | 'ref'> { +export interface MentionProps extends Omit, 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; - 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): void; onChange?(event: React.FormEvent): void; + onFocus?(event: React.FocusEvent): void; + onHide?(): void; onInput?(event: React.FormEvent): void; onSearch?(e: MentionSearchParams): void; onSelect?(e: MentionSelectParams): void; - onFocus?(event: React.FocusEvent): void; - onBlur?(event: React.FocusEvent): void; onShow?(): void; - onHide?(): void; - children?: React.ReactNode; } export declare class Mention extends React.Component {