hperrin / svelte-material-ui

Svelte Material UI Components
https://sveltematerialui.com/
Apache License 2.0
3.32k stars 285 forks source link

TextField with HelperText inside FormField not shown properly #392

Open ccosmincc opened 2 years ago

ccosmincc commented 2 years ago

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):

eltiare commented 2 years ago

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