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

Vue (radiogroup and checkbox questions): enableIf in choices property doesn't work correctly #2807

Closed
MuriloOnYou opened this issue Apr 19, 2021 · 3 comments
Labels

Comments

@MuriloOnYou
Copy link

Are you requesting a feature, reporting a bug or asking a question?

Reporting a bug

What is the current behavior?

When I set EnableIf prop into the choices of two questions to prevent the user from choosing the same answer on both, the choices at first get correctly disabled but after changing some answer I can select the same answer at the other question.

What is the expected behavior?

Always disable the other question choice when some answer is selected.

How would you reproduce the current behavior (if this is a bug)?

Access the reproduction, select some answer at the first question and select some answer at the second question. The corresponding answer into the first question won't be disabled.

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://codesandbox.io/s/surveyjs-enableif-bug-2tczp?file=/pages/index.vue

Specify your

  • browser: Microsoft Edge
  • browser version: 89.0.774.77
  • surveyjs platform (angular or react or jquery or knockout or vue): survey-vue
  • surveyjs version: 1.8.43
@andrewtelnov
Copy link
Member

andrewtelnov commented Apr 20, 2021

@MuriloOnYou Yes, I can see the issue. We will take a look.

Thank you,
Andrew

@andrewtelnov andrewtelnov changed the title EnableIf choices prop correlating two questions doesn't work properly Vue (radiogroup and checkbox questions): enableIf in choices property doesn't work correctly Apr 20, 2021
andrewtelnov added a commit that referenced this issue Apr 20, 2021
@andrewtelnov
Copy link
Member

@MuriloOnYou I have fixed it by the commit above.

Thank you,
Andrew

@MuriloOnYou
Copy link
Author

Thank you so much.

Best regards,
Murilo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants