svelte-material-ui icon indicating copy to clipboard operation
svelte-material-ui copied to clipboard

TextField with HelperText inside FormField not shown properly

Open ccosmincc opened this issue 3 years ago • 1 comments

Describe the bug Adding a TextField with HelperText inside a FormField will show the helper text on the right side of the text field, instead of displaying it below.

To Reproduce

<script>
  import TextField from "@smui/textfield";
  import HelperText from '@smui/textfield/helper-text';
  import FormField from "@smui/form-field";
</script>

  <FormField>
    <TextField label="Label" value=''>
      <HelperText persistent slot="helper">Helper Text</HelperText>
    </TextField>
  </FormField>

Expected behavior The helper text should be displayed below the text field, in the same way it's being displayed when the text field is not inside a form field.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 97.0.4692.71

ccosmincc avatar Jan 11 '22 17:01 ccosmincc

I'm running in to this too. Is there a quick workaround?

eltiare avatar Jul 03 '22 23:07 eltiare