Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/short-tomatoes-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Fix interactive bot protection widget not appearing on transfer flow
2 changes: 1 addition & 1 deletion packages/clerk-js/src/ui/components/SignUp/SignUpForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const SignUpForm = (props: SignUpFormProps) => {
</Col>
)}
<Col center>
<CaptchaElement />
<CaptchaElement maxHeight='0' />
<Col
gap={6}
sx={{
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function _SignUpStart(): JSX.Element {
/>
</Form.ControlRow>
)}
{!shouldShowForm && <CaptchaElement />}
{!shouldShowForm && <CaptchaElement maxHeight='0' />}
</Flex>
</Card.Content>

Expand Down
8 changes: 6 additions & 2 deletions packages/clerk-js/src/ui/elements/CaptchaElement.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { CAPTCHA_ELEMENT_ID } from '../../utils/captcha';
import { Box } from '../customizables';

export const CaptchaElement = () => (
type CaptchaElementProps = {
maxHeight?: string;
};

export const CaptchaElement = ({ maxHeight }: CaptchaElementProps) => (
<Box
id={CAPTCHA_ELEMENT_ID}
sx={{ display: 'block', alignSelf: 'center', maxHeight: '0' }}
sx={{ display: 'block', alignSelf: 'center', maxHeight }}
/>
);
Loading