Skip to content

Commit

Permalink
fix(surveys): button text field fix (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy authored Nov 15, 2023
1 parent 92636a3 commit 6650e37
Showing 1 changed file with 1 addition 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 @@ -843,7 +843,7 @@ export const createMultipleQuestionSurvey = (posthog: PostHog, survey: Survey) =
const questionElementSubmitButton = questionElement.getElementsByClassName(
'form-submit'
)[0] as HTMLButtonElement
questionElementSubmitButton.innerText = 'Next'
questionElementSubmitButton.innerText = question.buttonText || 'Next'
questionElementSubmitButton.type = 'button'
questionElementSubmitButton.addEventListener('click', () => {
nextQuestion(idx, survey.id)
Expand Down

0 comments on commit 6650e37

Please sign in to comment.