hperrin / svelte-material-ui

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

Autocomplete does not respect style="width: 100%" or required, like Select #659

Open mkmoisen opened 6 months ago

mkmoisen commented 6 months ago

Describe the bug The <Select> will respect style and required, for example:

<Select required style="width: 100%">
    ...
</Select>

However, <Autocomplete> does not.

Would you please add support for these?

The following work around isn't very convenient and is too verbose:


<script>
    let value = null;
    let text = null;
</script>

<Autocomplete
    bind:value={value}
    bind:text={text}
    options={['foo', 'bar', 'baz']}
    style="width: 100%
>

    <Textfield
        bind:value={text}
        label="Pick one"
        required
        style="width: 100%"
    />

</Autocomplete>