adiGuba

Results 109 comments of adiGuba

@n0n3br : **transition-behavior** is still experimental and not supported by all browser... And you have to create a transition using CSS. You cannot reuse Svelte's transitions...

Hello, Just a typo on the link : `https://svelte-5-preview.vercel.app/docs/runes#derived-by` instead of `https://svelte-5-preview.vercel.app/docs/runes#$derived-by`

Hello, The difference seems to come from the fact that Svelte 4 uses `createElement('img')` while Svelte 5 uses `createElement('template')`. Exemple here : * [REPL Svelte 4](https://svelte.dev/repl/8e11831adb7d41be8841d6ff5eddb76b?version=4.2.16) * [REPL Svelte 5](https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACp1UXW_TMBT9K1bGlFYaSdbH9AMhhAQSe4HtaZ1U13YTa44d2TeFEuW_c52PNYwVRp_ie6597sm5166DnVTCBel9HWhaiCAN3pdlcBXAofSB2wsFAmNnKss8snDMyhJWa70GJYDIInNkSe4f5oj0GJf7PtpVmoE0mlDOv1LNTfG5oJm4c1Jn31ruyZTUfucaPFNUVi6fbHKA0qVxXErmqiIqcwPGxU4IHr-pbyjkkW3JJtMmniXJu-rIt5nOj3QozH9apPm3oltRlIqONTGjHRDocaTjhlWF0BAxKxD5qISPJuGwJRzKD0AktRb20-3NFzwdLlAOyYXMcliuA5S-Dsh3ySF_ipShHKVgrOjPAwJU-a24cJZ1i3gVzsfykPMayZ8qIgpe4k5aBx9yqfhzTcMOKwqzF-2WiWcZeXcdYT1kPa8Xg5ObOekYcSQiWpZC8-fVXtGXweVnbUGO2V9agulw9EOzqPMdT6DMMd424E-47wQmhl6Ms9iWNvM7epZns86zXvhmftKx2cixRfx0ERfbCgCdMzplSrLHZX3ytjWrk6lF3NG8lnBo8YuUQ_J_SXsPXuTscyNKJEWXCFPUuWW4lVm46sYN3cFEu6O-EJTl3TNFnf96J6feQzjjNvpLWOOx5ngvY6xTx75K0wvaSs1TyKVb1hg2q6OahYODEu3j6fuLkoeR7mSkfgj3eT8CW8oeM2sqZCNKakHt28yiID_eCRfZFblgjJHkEhdJkpDrJLk8jgikmTJbqtr_Hcpw6bAxh5RslWGPfZ2C2kxqX7v8MRzH-Wql4ttfGC53UvAgBVuJ5qH5BfF1PfM2BgAA)...

### on:event={handler} with null|undefined Actually when the handler is null|undefined, it's still added to `addEventListener()` (who ignores it) Buf if we use some modifiers (preventDefault, trusted, self, stopPropagation) that wrap...

### on:event={handler} with dynamic handler A similar problem can occur when the handler is dynamic, given that it is wrapped in a function that will do the null-check. So when...

### Event modifier on component's event Actually the component's event only accept the `once` modifier. Even `preventDefault` is not allowed despite the fact that it can be handled by dispatch()....

### Forwarding (on:event) Actually when we forward an event, it adds a listener on the node which will take care of bringing it up via the component's dispatcher. So in...

### Forwarding all events (on:*) The same principle will be applied to on:*, which will be compiled to : ```javascript dispose = bubble($$self, listen, node, "*"); ``` But "*" will...

### Alias In fact this new `bubble()` method accepts a fifth parameter, allowing to use an alias for the forward. So something like `on:click|clicked` will forward the event 'click' when...

### onEventListener() All of this is managed via a new lifecycle method onEventListener(), with the following signature : ```typescript function onEventListener( type: string, fn: ( callback: EventListener, options: boolean |...