Skip to content

Commit

Permalink
fix(UnstyledOpenInCodeSandboxButton): set visibility to hidden (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz authored Aug 25, 2022
1 parent c6d078d commit 653cf0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ export const UnstyledOpenInCodeSandboxButton: React.FC<
title="Open in CodeSandbox"
{...props}
>
<form ref={formRef} action={CSB_URL} method="POST" target="_blank">
<form
ref={formRef}
action={CSB_URL}
method="POST"
style={{ visibility: "hidden" }}
target="_blank"
>
{Array.from(
paramsValues as unknown as Array<[string, string]>,
([key, value]) => (
Expand Down
2 changes: 1 addition & 1 deletion sandpack-react/src/presets/CustomSandpack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,4 +447,4 @@ export default function App() {
}}
template="react"
/>
);
);

0 comments on commit 653cf0e

Please sign in to comment.