hperrin / svelte-material-ui

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

Autocomplete options menu always visible #612

Closed jathpala closed 11 months ago

jathpala commented 11 months ago

Describe the bug When using the autocomplete field, the menu is always displayed underneath (and unstyled)

To Reproduce

  1. Create new project with npm init vite -> svelte
  2. npm install @smui-extra/autocomplete
  3. Add import AutoComplete from '@smui-extra/autocomplete' to App.svelte in script tag
  4. Add <AutoComplete options={["One", "Two", "Three"]} /> to App.svelte in body

Expected behavior The options menu should only display while the input is focused (and it should be styled)

Screenshots Screenshot 2023-07-12 at 23-18-21 Vite Svelte

Desktop:

jathpala commented 11 months ago

Apologies I just realised I made an error

Need to run npm run prepare each time a component is added. This is explained in the docs but I missed it.

jathpala commented 11 months ago

Closing