Skip to content

Commit

Permalink
Merge branch 'main' into build/release4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
silvalaura committed Oct 20, 2023
2 parents 95071a0 + 0c19408 commit af75465
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-magma-dom/src/components/InputBase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,8 @@ export const InputBase = React.forwardRef<HTMLInputElement, InputBaseProps>(
}

const passwordBtnWidth = () => {
const btnWidth = children?.props?.children?.[0]?.ref?.current?.offsetWidth;
const btnWidth =
children?.props?.children?.[0]?.ref?.current?.offsetWidth;
if (typeof btnWidth === 'number') {
return btnWidth;
} else {
Expand Down

0 comments on commit af75465

Please sign in to comment.