alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

Test value is null OR undefined for building initialValue #147

Closed TimNZ closed 6 years ago

TimNZ commented 6 years ago

'undefined' is a painful thing to pass as it is usually is a test for a value not being provided at all. Makes checks in React lifecycle methods like componentWillReceiveProps for updated props difficult.

Testing for 'null' shouldn't break anything