Skip to content

Commit

Permalink
Release/v1.5.1 [main] (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbanting authored Nov 27, 2024
2 parents f396e75 + 8090826 commit 6d2517f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class ItemEntity {
}

getPrinted(value: ResponseItem, context: { items: ItemEntity[]; responses: ResponseItem[] | string[] }): string {
const allowedTypes = ['singleSelect', 'multiSelect', 'slider', 'text']
const allowedTypes = ['singleSelect', 'multiSelect', 'slider', 'text', 'numberSelect']

if (!allowedTypes.includes(this.inputType)) {
return ''
Expand Down Expand Up @@ -214,7 +214,7 @@ export class ItemEntity {
const maxLabelHtml = `<div class="slider-value">${maxLabel}</div>`

optionsHtml += `<div class="option">${minLabelHtml}<input type="range" min="${minValue}" max="${maxValue}" value="${response[0]}">${maxLabelHtml}</div>`
} else if (this.inputType === 'text') {
} else if (this.inputType === 'text' || this.inputType === 'numberSelect') {
optionsHtml += response[0]
}
//additional input
Expand Down

0 comments on commit 6d2517f

Please sign in to comment.