-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
Make library interoperable with Svelte 5 #1926
Conversation
Co-Authored-By: Eric Fulton <[email protected]>
Closes #1924 Svelte 5 will not compile if `div` is nested inside `p` element. Refactor Link to render an `a` instead of `p` when disabled.
In Svelte 5, the comment is ignored when it's above the input element. Setting the comment at the top-level resolves the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with [email protected]
@@ -79,6 +79,7 @@ | |||
$: dispatch(expanded ? "expand" : "collapse"); | |||
</script> | |||
|
|||
<!-- svelte-ignore a11y-autofocus --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long-term, I recommend we remove autofocus
functionality and guide users to instead utilize ref
to manually set focus based on user or server events.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed – would love to sort out the ignorable a11y warnings from the rest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Continued in #1929
Fix was released in v0.83.0. |
Review by commit – rebase merge.
#1908
There are several low-lift revisions that make this library interoperable with Svelte 5.
<p>
#1924)