Skip to content

Commit e6f2174

Browse files
committed
Fixed description section
1 parent 2b0420e commit e6f2174

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

examples/questionnaire/Example.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@
9090
id: 'first_name',
9191
tagline: 'Hi! Welcome to our demo survey 😊',
9292
title: 'What is your first name?',
93+
description: 'description',
94+
descriptionLink: [
95+
new LinkOption({
96+
url: 'example.com'
97+
})
98+
],
9399
type: QuestionType.Text,
94100
required: true,
95101
placeholder: 'Start typing here...'

src/components/Question.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,14 @@
5050
</div>
5151
</div>
5252
<p v-if="question.description || question.descriptionLink" class="description">
53-
<span>{{ question.description }}</span>
53+
<span v-if="question.description">{{ question.description }}</span>
5454
<a
5555
v-for="(link, index) in question.descriptionLink"
5656
class="f-link"
5757
v-bind:key="'m' + index"
5858
v-bind:href="link.url"
5959
v-bind:target="link.target"
60-
>
61-
{{ link.text || link.url }}
62-
</a>
60+
>{{ link.text || link.url }}</a>
6361
</p>
6462

6563
</div>

0 commit comments

Comments
 (0)