We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you mark a text field as required and programmatically set it to be invalid it doesn't become red.
invalid
<script> import Switch from '@smui/switch'; import Textfield from '@smui/textfield'; import FormField from '@smui/form-field'; let error = false; let value = 'test'; </script> <h4>with required</h4> <Textfield bind:value label="Password" invalid={error} required /> <br /><br /> <Textfield bind:value label="Password" invalid={error} required variant="filled" /> <br /><br /><br /> <h4>without required</h4> <Textfield bind:value label="Password" invalid={error} /> <br /><br /> <Textfield bind:value label="Password" invalid={error} variant="filled" /> <br /><br /><br /><br /> <FormField align="end"> <span slot="label">invalid</span> <Switch bind:checked={error} /> </FormField>
Text Field should be red when invalid
repl
The text was updated successfully, but these errors were encountered:
Wow! Very impressive bug report! Thank you for the sample code. It's making it much easier to fix.
Sorry, something went wrong.
b13b2a0
hperrin
No branches or pull requests
Required textfield do not apear red wen invalid is set
Describe the bug
If you mark a text field as required and programmatically set it to be invalid it doesn't become red.
To Reproduce
invalid
propertyexample code:
Expected behavior
Text Field should be red when invalid
Screenshots
Desktop:
repl
The text was updated successfully, but these errors were encountered: