stages/prompt: Fix dropdown invalid choice (#5046)
This commit is contained in:
parent
9abd4b3e14
commit
6b42e404bf
|
@ -149,8 +149,8 @@ export class PromptStage extends BaseStage<PromptChallenge, PromptChallengeRespo
|
||||||
${prompt.choices
|
${prompt.choices
|
||||||
?.map((choice) => {
|
?.map((choice) => {
|
||||||
return `<option
|
return `<option
|
||||||
value=${choice}
|
value="${choice}"
|
||||||
${prompt.placeholder === choice ? "selected" : ""}
|
?selected=${prompt.placeholder === choice}
|
||||||
>
|
>
|
||||||
${choice}
|
${choice}
|
||||||
</option>`;
|
</option>`;
|
||||||
|
|
Reference in New Issue