From 029d7df0bd2013c43669996ea6d265ef3de9599c Mon Sep 17 00:00:00 2001 From: Tom Crockett Date: Fri, 10 Mar 2017 16:12:07 -0800 Subject: [PATCH] [react-select] onChange can be called with null (#14713) This occurs when the selection is cleared. --- react-select/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-select/index.d.ts b/react-select/index.d.ts index beed5858ff..789512661f 100644 --- a/react-select/index.d.ts +++ b/react-select/index.d.ts @@ -238,7 +238,7 @@ declare namespace ReactSelectClass { /** * onChange handler: function (newValue) {} */ - onChange?: (newValue: Option | Option[]) => void; + onChange?: (newValue: Option | Option[] | null) => void; /** * fires when the menu is closed */