[react-select] onChange can be called with null (#14713)

This occurs when the selection is cleared.
This commit is contained in:
Tom Crockett 2017-03-10 16:12:07 -08:00 committed by Mohamed Hegazy
parent c9e96aa918
commit 029d7df0bd

View File

@ -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
*/