-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
AvatarImage with enhanced:img #328
Comments
Does this work with the following? <AvatarImage asChild let:builder>
<enhanced:img use:builder.action {...builder}
loading="lazy" src={reviewer.src} alt={reviewer.alt}
/>
</AvatarImage> |
Hey, @huntabyte Ran into something recently and doing that proposed way doesn't work - seems there's no builder on the Error:
Tried doing I still don't well understand the whole passing of builders/delegation, else I would have P.R'ed. 🙁 |
Are you not able to access the builder @shyakadavis ? |
Oh, sorry @huntabyte - forgot to follow up on this. 🙁 So, yeah. There's no builder to access - same error as the above. I had tried digging around, but couldn't figure it out, and somehow forgot to post my response here. |
Hiya; Quick question about something related-ish; How can I bind a variable to an Doing something like this: <script lang="ts">
import { onMount } from 'svelte';
let img_element: HTMLImageElement;
onMount(() => {
img_element.onload = () => {
// do something
};
});
</script>
<Avatar.Image src={somewhere} bind:this={img_element} /> yields this error:
Since I wanted to verify that it was simply being bound to, I threw in an
Currently, is there is no way to bind to it? Thanks. |
Closing as fixed in |
Change Type
Addition
Proposed Changes
It would be helpful if there was a documentation on how to achieve this
The text was updated successfully, but these errors were encountered: