Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
timshinsergey opened this issue Oct 1, 2020 · 1 comment · Fixed by #5608
Closed

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

timshinsergey opened this issue Oct 1, 2020 · 1 comment · Fixed by #5608

Comments

@timshinsergey
Copy link

timshinsergey commented Oct 1, 2020

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

@Conduitry
Copy link
Member

This should be fixed now in v3.29.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants