Skip to content

Commit

Permalink
Merge branch 'main' into border-subtle-layer-dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored May 26, 2023
2 parents d4d16fb + 97b6ca3 commit 50b5aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ const Checkbox = React.forwardRef(
className={`${prefix}--checkbox`}
id={id}
ref={(el) => {
if (el && indeterminate) {
el.indeterminate = indeterminate;
if (el) {
el.indeterminate = indeterminate ?? false;
}
if (typeof ref === 'function') {
ref(el);
Expand Down

0 comments on commit 50b5aab

Please sign in to comment.