Skip to content

Commit

Permalink
fix(SelectControl): select zero value (#26353)
Browse files Browse the repository at this point in the history
(cherry picked from commit a0f0f69)
  • Loading branch information
rekilina authored and michael-s-molina committed Jan 4, 2024
1 parent 9b99303 commit 3f97dac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default class SelectControl extends React.PureComponent {

const getValue = () => {
const currentValue =
value ||
value ??
(this.props.default !== undefined ? this.props.default : undefined);

// safety check - the value is intended to be undefined but null was used
Expand Down

0 comments on commit 3f97dac

Please sign in to comment.