ditdot-dev / vue-flow-form

Create conversational conditional-logic forms with Vue.js.
https://www.ditdot.hr/en/vue-flow-form
MIT License
779 stars 174 forks source link

Bug: An optional single-choice answer cannot be skipped after selection #290

Open nesnass opened 3 months ago

nesnass commented 3 months ago

Describe the bug When a question is set to required: false and also multiple: false it is not possible to de-select an answer. That means it's not possible to skip the question after a mistaken selection, even though 'required' is false.

To Reproduce Use the following question setup:

new QuestionModel({
  id: 'singleChoice1',
  title: 'Single choice question',
  type: QuestionType.MultipleChoice,   (or QuestionType.Dropdown)
  multiple: false,
  required: false,
})

Expected behavior In this case it should be possible to de-select an answer, so that the 'skip' button is again visible

Desktop (please complete the following information):