Skip to content

Commit 9708b6b

Browse files
committed
Code/style cleanup
1 parent 1fb2258 commit 9708b6b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/Question.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
export default {
114114
name: 'FlowFormQuestion',
115115
components: {
116+
FlowFormDateType,
116117
FlowFormDropdownType,
117118
FlowFormEmailType,
118119
FlowFormLongTextType,
@@ -122,8 +123,7 @@
122123
FlowFormPhoneType,
123124
FlowFormSectionBreakType,
124125
FlowFormTextType,
125-
FlowFormUrlType,
126-
FlowFormDateType
126+
FlowFormUrlType
127127
},
128128
props: {
129129
question: QuestionModel,
@@ -263,9 +263,11 @@
263263
if (this.question.subtitle) {
264264
return true
265265
}
266+
266267
if (this.question.type === QuestionType.LongText || this.question.type === QuestionType.MultipleChoice) {
267268
return this.question.helpTextShow
268269
}
270+
269271
return false
270272
}
271273
}

src/components/QuestionTypes/MultipleChoiceType.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@
7474
if (value) {
7575
this.addKeyListener()
7676
77-
if (this.question.multiple) {
78-
if (this.question.answered) {
79-
this.enterPressed = false
80-
}
77+
if (this.question.multiple && this.question.answered) {
78+
this.enterPressed = false
8179
}
8280
} else {
8381
this.removeKeyListener()

0 commit comments

Comments
 (0)