Skip to content

Commit 6c4ef8d

Browse files
committed
chore: Update jsdoc comment of internal api & rm combo box limit
1 parent 318de43 commit 6c4ef8d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/generate.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export interface SelectProps<OptionsType extends object[], ValueType> extends Re
131131
notFoundContent?: React.ReactNode;
132132
placeholder?: React.ReactNode;
133133
backfill?: boolean;
134+
/** @private Internal usage. Do not use in your production. */
134135
getInputElement?: () => JSX.Element;
135136
optionLabelProp?: string;
136137
maxTagTextLength?: number;
@@ -634,9 +635,9 @@ export default function generateSelector<
634635
};
635636

636637
// ============================= Input ==============================
637-
// Only works in `combobox`
638+
// Only works in `combobox` or `rc-cascader`
638639
const customizeInputElement: React.ReactElement =
639-
(mode === 'combobox' && getInputElement && getInputElement()) || null;
640+
(typeof getInputElement === 'function' && getInputElement()) || null;
640641

641642
// ============================== Open ==============================
642643
const [innerOpen, setInnerOpen] = useMergedState<boolean>(undefined, {

0 commit comments

Comments
 (0)