Skip to content

Commit

Permalink
Changes from falsy check for value prop in select to null equality
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Oct 19, 2018
1 parent c05eb7c commit aecc644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const EuiSelect = ({
// React HTML input can not have both value and defaultValue properties.
// https://reactjs.org/docs/uncontrolled-components.html#default-values
let selectDefaultValue;
if (!value) {
if (value == null) {
selectDefaultValue = defaultValue || '';
}

Expand Down

0 comments on commit aecc644

Please sign in to comment.