mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
[react-select] onChange can be called with null (#14713)
This occurs when the selection is cleared.
This commit is contained in:
committed by
Mohamed Hegazy
parent
c9e96aa918
commit
029d7df0bd
Vendored
+1
-1
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user