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 ${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>`;