Hi,
I have a scenario whereby there is a panel, which contains a checkbox question with several options. If one of those options is checked, there is logic to display a subsequent panel with another question. However, it seems like the question within that panel (which has logic) is always visible within the model
regardless of which checkbox item is selected.
Consider the following reproducible example: https://codesandbox.io/s/withered-darkness-lqx61z?file=/src/json.js1.
Within the first panel, there are 5 options. If "first item" is selected, the survey renders another panel with another question "first question with logic". If another item is selected, for example "second item", the survey doesn't render the panel as expected. However, in the actual model
, by console logging the visible questions, you can see that "first question with logic" is always considered visible, regardless of which checkbox item is selected. This is reproducible on the above code sandbox as I mentioned.
Could you please look into this and confirm that it is indeed a bug?
For your reference, I have included an included an example within the same code sandbox that works fine. It's a simple boolean question, that when 'yes' is selected, displays the correct question and indeed shows it as visible within the model
only when applicable.