From 789f03ed80442a697fa05eb3ff2ac668b47c37f5 Mon Sep 17 00:00:00 2001 From: Vito Date: Thu, 20 Apr 2017 14:54:28 -0400 Subject: [PATCH] add undocumented prop instanceId to react-select (#15891) --- types/react-select/index.d.ts | 5 +++++ types/react-select/react-select-tests.tsx | 1 + 2 files changed, 6 insertions(+) diff --git a/types/react-select/index.d.ts b/types/react-select/index.d.ts index 2ce34cf2b8..361dcfecc2 100644 --- a/types/react-select/index.d.ts +++ b/types/react-select/index.d.ts @@ -173,6 +173,11 @@ declare namespace ReactSelectClass { * renders a custom input */ inputRenderer?: (props: Object) => React.ReactElement; + /** + * allows for synchronization of component id's on server and client. + * @see https://github.com/JedWatson/react-select/pull/1105 + */ + instanceId?: string; /** * whether the Select is loading externally or not (such as options being loaded). * if true, a loading spinner will be shown at the right side. diff --git a/types/react-select/react-select-tests.tsx b/types/react-select/react-select-tests.tsx index 10a3f51833..972a1dacdc 100644 --- a/types/react-select/react-select-tests.tsx +++ b/types/react-select/react-select-tests.tsx @@ -107,6 +107,7 @@ class SelectTest extends React.Component, {}> { escapeClearsValue: true, filterOptions: filterOptions, ignoreAccents: true, + instanceId: 'custom-instance-id', joinValues: false, matchPos: "any", matchProp: "any",