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
|
||||
?.map((choice) => {
|
||||
return `<option
|
||||
value=${choice}
|
||||
${prompt.placeholder === choice ? "selected" : ""}
|
||||
value="${choice}"
|
||||
?selected=${prompt.placeholder === choice}
|
||||
>
|
||||
${choice}
|
||||
</option>`;
|
||||
|
|
Reference in New Issue