-
-
Notifications
You must be signed in to change notification settings - Fork 223
Closed
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working
Description
Describe the bug
Null values can be used in style directives to remove styles and undefined can be used to leave previously applied styles without overriding. However, style directive values are currently typed as 'String | Number' which gives a type error when attempting to use nullish values.
To Reproduce
Put a possibly nullish value in a style directive by itself.
For example a code snippet that is treated in a way you don't expect.
<svg
style:float={null}
/>Expected behavior
Nullish values are allowed in style directives.
System (please complete the following information):
- OS: Windows
- IDE: VSCode
- Plugin/Package:
svelte-language-server
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working
