feat: replace dropdownClassName to popupClassName (#37122)

This commit is contained in:
黑雨 2022-08-19 17:40:22 +08:00 committed by GitHub
parent d9ab3ee4b5
commit 9b3a4dab70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ export interface OptionProps {
export interface MentionProps extends RcMentionsProps {
loading?: boolean;
status?: InputStatus;
popupClassName?: string;
}
export interface MentionState {
@ -64,7 +65,7 @@ const InternalMentions: React.ForwardRefRenderFunction<unknown, MentionProps> =
children,
notFoundContent,
status: customStatus,
dropdownClassName,
popupClassName,
...restProps
},
ref,
@ -149,7 +150,7 @@ const InternalMentions: React.ForwardRefRenderFunction<unknown, MentionProps> =
filterOption={getFilterOption()}
onFocus={onFocus}
onBlur={onBlur}
dropdownClassName={classNames(dropdownClassName, hashId)}
dropdownClassName={classNames(popupClassName, hashId)}
ref={mergedRef as any}
>
{getOptions()}