Skip to content

Slot props produce no-undef error on <slot> #201

@janosh

Description

@janosh

#109 was opened for <svelte:fragment>. The same problem occurs with <slot />:

Screenshot 2023-03-02 at 10 11 18

    <Select
      options={actions}
      bind:input
      placeholder="Go to..."
      on:add={move}
      on:keydown={toggle}
    >
      <!-- wait for https://github.com/sveltejs/svelte/pull/8304 -->
      <slot slot="option" name="option" let:option>
        <span>{option.label}</span>
      </slot>
    </Select>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions