Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple choice form logic breaks the whole form #75

Closed
fkammer opened this issue May 2, 2024 · 0 comments
Closed

Multiple choice form logic breaks the whole form #75

fkammer opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fkammer
Copy link

fkammer commented May 2, 2024

As soon as I add logic to a multiple choice question in v0.0.8(!) the whole form breaks after the first question (no logic for that question).

To Reproduce
Steps to reproduce the behavior:

  1. Create a new form
  2. Add a short text as first question
  3. Add a multiple choice question with two options A and B
  4. Add two statements S1 and S2
  5. Add logic to mc question:
Bildschirmfoto 2024-05-02 um 15 25 21 Bildschirmfoto 2024-05-02 um 15 28 24
  1. Go to form preview or answer form in incognito tab
  2. Enter a random string to answer the first question
  3. Navigating to the next questions breaks the page.

Error

Browser console:

TypeError: Cannot read properties of undefined (reading 'other')
    at uB (index-09576331.js:1081:13507)
    at pS (index-09576331.js:1081:12848)
    at pO (index-09576331.js:1081:16872)
    at Object.setValues (index-09576331.js:1082:3087)
    at index-09576331.js:1082:2529
    at Object.Em [as useReducer] (index-09576331.js:228:20805)
    at xe.useReducer (index-09576331.js:9:6270)
    at Lq (index-09576331.js:1178:33246)
    at g1 (index-09576331.js:228:19527)
    at bg (index-09576331.js:230:3153)
Bildschirmfoto 2024-05-02 um 15 35 27

Expected behavior
Form navigation and logic works.

Further notes

  • Position of the multiple choice question doesn't matter. No matter which position the mc question has the first question breaks.
  • A downgrade to v0.0.7 fixes the problem

HeyForm (please complete the following information):

  • Install: self hosted
  • Version: v0.0.8

Desktop (please complete the following information):

  • OS: Mac OS X 14.2.1
  • Browser: Chrome & Firefox
  • Version: current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant