Card with password field and Chrome warning #2334
Answered
by
stsrki
nightroman
asked this question in
Q&A
-
Blazorise.Demo does not use forms as such, it uses I have a "form" using <Card>
<CardBody>
<Validations @ref="validations" Mode="ValidationMode.Manual" ValidateOnLoad="false">
<Field>
<FieldLabel>Application client ID and secret</FieldLabel>
<Validation Validator="@ValidateClientIdSecret">
<TextEdit Placeholder="Two GUID values separated by a space"
@bind-Text="@_model.ClientIdSecret"
Role="TextRole.Password">
<Feedback>
<ValidationError>Expected two GUID values separated by a space</ValidationError>
</Feedback>
</TextEdit>
</Validation>
</Field>
</Validations>
<Button Color="Color.Primary"
Loading="@_loading"
Clicked="LoginAsync">
Login
</Button>
</CardBody>
</Card> All works fine but Chrome shows the following warning:
Questions
|
Beta Was this translation helpful? Give feedback.
Answered by
stsrki
May 10, 2021
Replies: 1 comment 7 replies
-
Nothing to worry about. Just wrap the fields with form and your good. <Card>
<CardBody>
<Form>
<Validations @ref="validations" Mode="ValidationMode.Manual" ValidateOnLoad="false">
<Field>
<FieldLabel>Application client ID and secret</FieldLabel>
<Validation Validator="@ValidateClientIdSecret">
<TextEdit Placeholder="Two GUID values separated by a space"
@bind-Text="@_model.ClientIdSecret"
Role="TextRole.Password">
<Feedback>
<ValidationError>Expected two GUID values separated by a space</ValidationError>
</Feedback>
</TextEdit>
</Validation>
</Field>
</Validations>
<Button Color="Color.Primary"
Loading="@_loading"
Clicked="LoginAsync">
Login
</Button>
</Form>
</CardBody>
</Card> The warning never occurred to me before. Maybe it something from newer Chrome versions. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
nightroman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nothing to worry about. Just wrap the fields with form and your good.