mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[react-select] onChange can be called with null (#14713)
This occurs when the selection is cleared.
This commit is contained in:
parent
c9e96aa918
commit
029d7df0bd
2
react-select/index.d.ts
vendored
2
react-select/index.d.ts
vendored
@ -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
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user