From 2e7d08e98f2c6935fa72d8180e2175fb8367dec9 Mon Sep 17 00:00:00 2001 From: This JJ <32838161+thisJJ@users.noreply.github.com> Date: Fri, 27 Jul 2018 15:47:07 +0700 Subject: [PATCH] Add id to Select props (#11189) * Can set id to props on Select * Update index.tsx --- components/select/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/select/index.tsx b/components/select/index.tsx index ee50969377..70ecfec5d2 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -27,6 +27,7 @@ export interface AbstractSelectProps { dropdownMatchSelectWidth?: boolean; onSearch?: (value: string) => any; filterOption?: boolean | ((inputValue: string, option: React.ReactElement) => any); + id?: string; } export interface LabeledValue { @@ -85,6 +86,7 @@ const SelectPropTypes = { optionLabelProp: PropTypes.string, transitionName: PropTypes.string, choiceTransitionName: PropTypes.string, + id: PropTypes.string, }; // => It is needless to export the declaration of below two inner components.