web/flows: fix ak-locale prompt being rendered without name attribute
closes #3100 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
49b6aabb02
commit
aa48f6dd9d
|
@ -115,7 +115,7 @@ export class PromptStage extends BaseStage<PromptChallenge, PromptChallengeRespo
|
||||||
case PromptTypeEnum.Static:
|
case PromptTypeEnum.Static:
|
||||||
return `<p>${prompt.placeholder}</p>`;
|
return `<p>${prompt.placeholder}</p>`;
|
||||||
case PromptTypeEnum.AkLocale:
|
case PromptTypeEnum.AkLocale:
|
||||||
return `<select class="pf-c-form-control">
|
return `<select class="pf-c-form-control" name="${prompt.fieldKey}">
|
||||||
<option value="" ${prompt.placeholder === "" ? "selected" : ""}>
|
<option value="" ${prompt.placeholder === "" ? "selected" : ""}>
|
||||||
${t`Auto-detect (based on your browser)`}
|
${t`Auto-detect (based on your browser)`}
|
||||||
</option>
|
</option>
|
||||||
|
|
Reference in New Issue