hperrin / svelte-material-ui

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

`Autocomple` should log error to the console or something #621

Open DetachHead opened 1 year ago

DetachHead commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Autocomplete.svelte contains the following code:

      {#if loading}
        <Item disabled>
          <slot name="loading">
            <Text>Loading...</Text>
          </slot>
        </Item>
      {:else if error}
        <Item disabled>
          <slot name="error">
            <Text>Error while fetching suggestions.</Text>
          </slot>
        </Item>

Expected behavior it should also log error to the console, as currently it's very difficult to debug errors in the search function

Screenshots image