We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc349b commit 8386f8aCopy full SHA for 8386f8a
src/components/Question.vue
@@ -228,7 +228,9 @@
228
return false
229
}
230
231
- if (!q || !this.dataValue) {
+ // if there is no question referenced, or dataValue is still set to one of its defaults (null, from above; '' from the default ChoiceOption)
232
+ // this allows a ChoiceOption value of false, but will not allow you to use null or '' as a value.
233
+ if (!q || this.dataValue === null || this.dataValue === '') {
234
235
236
@@ -241,7 +243,7 @@
241
243
showInvalid() {
242
244
const q = this.$refs.questionComponent
245
246
+ if (!q || this.dataValue === null || this.dataValue === '') { // see comment above regarding null options
247
248
249
0 commit comments