stages/prompt: Fix dropdown invalid choice (#5046)

This commit is contained in:
sdimovv
2023-03-22 22:25:13 +02:00
committed by GitHub
parent 9abd4b3e14
commit 6b42e404bf

View File

@ -149,8 +149,8 @@ export class PromptStage extends BaseStage<PromptChallenge, PromptChallengeRespo
${prompt.choices
?.map((choice) => {
return `<option
value=${choice}
${prompt.placeholder === choice ? "selected" : ""}
value="${choice}"
?selected=${prompt.placeholder === choice}
>
${choice}
</option>`;