Skip to content

Commit

Permalink
feat: fixed unit-control block dropping units when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank-Tripathi32 committed Dec 20, 2024
1 parent d08a55a commit cc483c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/unit-control/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function UnforwardedUnitControl(
typeof nextQuantityValue === 'undefined' ||
nextQuantityValue === null
) {
onChangeProp?.( '', changeProps );
onChangeProp?.( `0${ unit }`, changeProps );
return;
}

Expand Down

0 comments on commit cc483c1

Please sign in to comment.