mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
Add tokenSeparators prop to Select TS definitions (#4441)
[The documentation](https://ant.design/components/select/) lists the `tokenSeparators` property on the `Select` component, but the TypeScript definition for the component does not contain the `tokenSeparators` property. The underlying `rc-select` component [defines tokenSeparators](https://github.com/react-component/select/blob/master/src/Select.jsx#L79) as `PropTypes.arrayOf(PropTypes.string)`, so I've added it as an optional TypeScript property of type `string[]`. - Add tokenSeparators to SelectProps in Select Component
This commit is contained in:
parent
ffa7f9b1ba
commit
ec2bec5417
@ -36,6 +36,7 @@ export interface SelectProps {
|
||||
dropdownStyle?: React.CSSProperties;
|
||||
dropdownMenuStyle?: React.CSSProperties;
|
||||
onChange?: (value: SelectValue) => void;
|
||||
tokenSeparators?: string[];
|
||||
}
|
||||
|
||||
export interface OptionProps {
|
||||
|
Loading…
Reference in New Issue
Block a user