Skip to content

$$restProps not working from custom element on HTML #5482

@timshinsergey

Description

@timshinsergey

Describe the bug
On HTML
<base-input id="1" type="tel" required placeholder="Enter a name"></base-input>

On BaseInput.svelte
<script> export let type = "text"; export let value = ""; export let id; </script> <input {type} {value} {id} {...$$restProps} />

Total: $$restProps will be empty.
BUT!
If we use BaseInput in some component(App.svelte for example) then $$restProps will work

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions