Skip to content

Commit

Permalink
chore: Update jsdoc comment of internal api & rm combo box limit
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Jun 22, 2021
1 parent 318de43 commit 6c4ef8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/generate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export interface SelectProps<OptionsType extends object[], ValueType> extends Re
notFoundContent?: React.ReactNode;
placeholder?: React.ReactNode;
backfill?: boolean;
/** @private Internal usage. Do not use in your production. */
getInputElement?: () => JSX.Element;
optionLabelProp?: string;
maxTagTextLength?: number;
Expand Down Expand Up @@ -634,9 +635,9 @@ export default function generateSelector<
};

// ============================= Input ==============================
// Only works in `combobox`
// Only works in `combobox` or `rc-cascader`
const customizeInputElement: React.ReactElement =
(mode === 'combobox' && getInputElement && getInputElement()) || null;
(typeof getInputElement === 'function' && getInputElement()) || null;

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

0 comments on commit 6c4ef8d

Please sign in to comment.