svelte
svelte copied to clipboard
web development for the rest of us
Compiler is not recognizing this name. See #6643 where HTMLElement was added to the globals.
### Describe the problem Sometimes style switching logic is placed in the parent component and controlled by switching the classNames. To avoid using the global CSS className, we need a...
Trying to dispatch a `new CustomEvent` without warning. Not sure if we need to add [the other types of events](https://developer.mozilla.org/en-US/docs/Web/API/Event#interfaces_based_on_event) to the list, it's probably rare to do a `new...
fix: https://github.com/sveltejs/svelte/issues/7764 Class attributes were reset if outro existed and element had not yet been destroyed. But class directive was not like that. This PR fixed this issue. ### Before...
Fixes #6469 ### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it is discussed ahead...
This PR provides a means to pass a {...spread} operator with bindings so they can be handled dynamically. It's highly likely this will need rework and some guidance. It's POC...
### Describe the problem Please note there is a workaround to this issue currently, but requires a lot of extra boilerplate in which you create and pass a writable store...
### Before submitting the PR, please make sure you do the following - [x] It's really useful if your PR references an issue where it is discussed ahead of time....
### Describe the problem Svelte doesn't allow binding to [naturalWidth](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalWidth) and [naturalHeight](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalHeight) of img tags. Those are read only properties that reflect the natural width of an image (it's native...
### Before submitting the PR, please make sure you do the following - [ ] It's really useful if your PR references an issue where it is discussed ahead of...