You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, major congrats on the release :-) Svelte 5 is awesome!
I have an element that sets a class with the short hand syntax class:dark, sets classes via the regular class directive and calls a function to retrieve some (a11y) props.
Whenever the focus state changes, the dark class is removed. And only borderColor-accent is present.
This only happens when {...getAriaProps()} is present. If this is not present on the element, the dark class stays.
It does not seem to matter what is returned from the getAriaProps call.
It does not seem to matter what is passed to class:dark.
Describe the bug
First off, major congrats on the release :-) Svelte 5 is awesome!
I have an element that sets a class with the short hand syntax
class:dark
, sets classes via the regular class directive and calls a function to retrieve some (a11y) props.Whenever the focus state changes, the dark class is removed. And only
borderColor-accent
is present.This only happens when
{...getAriaProps()}
is present. If this is not present on the element, the dark class stays.getAriaProps
call.class:dark
.Reproduction
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAE2VP3UrFMAx-lRAObIM578c2OfgC3nuE09NlUuzakqaClL67dCIqXiTw_SRfknEzliKOzxmd2glHPIeAPcpHqCC-kxXCHqNPrCszRc0myHJxF7EksHmdIq0wwymKEmo3ZSN1Va61JafFeAevJGc26ol9iG1QrPbYQT5swiSJHeRSYW1uuv-JcZNxIQl4d2TNue1gXn4FCycq4N3NJv6vHvcU0FbFOK6K3-b8NXAwc76e8rf5AZqb55X40VvPd0prctLACE1TrgXyMAx_3ugKLNjj7lezGVpxPBa_lE-FMWuQVgEAAA==
If you remove the spread expression, everything works.
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: