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
Spread event handlers #36
Comments
Looks like Svelte does support this, but difficult to optimize: Ex: <Widget {...$$props}/> Probably should use this for now on all components to ensure usage is correct, then can optimize after. |
#40 is merged, should cover props. Missing still is the various |
Renaming issue to just cover missing events |
@bestguy what do you recommend as a work around I have an input |
Hi @telemmaite, I think I'll need to add support for the main events components use like |
Hi @telemmaite , actually this should work: <script>
import { Input } from 'sveltestrap';
let name = 'world';
</script>
<Input bind:value={name} />
<h1>Hi {name}!</h1> You don't need to use |
Looks like we don't support many props and event handlers unless specifically added to interface.
I need to catch up with Svelte 3 but doesn't look like it supports spread props ala React:
{...props}
. May need to add them all individually, although this Svelte PR seems to addon:*
event support: sveltejs/svelte#3349The text was updated successfully, but these errors were encountered: