Skip to content
New issue

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

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

Open
mkmoisen opened this issue May 22, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@mkmoisen
Copy link

mkmoisen commented May 22, 2024

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>

@mkmoisen mkmoisen added the bug Something isn't working label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant