Skip to content

Commit

Permalink
thank you messages do not auto disappear
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy committed Nov 14, 2023
1 parent d4286c2 commit a556297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/surveys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ export const callSurveys = (posthog: PostHog, forceReload: boolean = false) => {
})
}
const countdownEl = thankYouElement.querySelector('.thank-you-message-countdown')
if (countdownEl) {
if (survey.appearance?.autoDisappear && countdownEl) {
let count = 3
countdownEl.textContent = `(${count})`
const countdown = setInterval(() => {
Expand Down
2 changes: 2 additions & 0 deletions src/posthog-surveys-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ export interface SurveyAppearance {
backgroundColor?: string
submitButtonColor?: string
textColor?: string
// deprecate submit button text eventually
submitButtonText?: string
descriptionTextColor?: string
ratingButtonColor?: string
ratingButtonActiveColor?: string
ratingButtonHoverColor?: string
whiteLabel?: boolean
autoDisappear?: boolean
displayThankYouMessage?: boolean
thankYouMessageHeader?: string
thankYouMessageDescription?: string
Expand Down

0 comments on commit a556297

Please sign in to comment.