hperrin / svelte-material-ui

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

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

Open DetachHead opened 10 months ago

DetachHead commented 10 months 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