Skip to content

Commit

Permalink
fix: survey previews should never have the submit button disabled (#1650
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lucasheriques authored Jan 14, 2025
1 parent 763b306 commit dd1cc7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions playground/nextjs/src/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const PageHeader = () => {

<div className="flex-1" />
<div className="flex items-center gap-2">
<Link href="/survey">Surveys</Link>
<Link href="/replay-examples/animations">Animations</Link>
<Link href="/replay-examples/iframe">Iframe</Link>
<Link href="/replay-examples/canvas">Canvas</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/surveys/components/BottomSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function BottomSection({
<div className="buttons">
<button
className="form-submit"
disabled={submitDisabled}
disabled={submitDisabled && !isPreviewMode}
type="button"
style={isPopup ? { color: textColor } : {}}
onClick={() => {
Expand Down

0 comments on commit dd1cc7a

Please sign in to comment.