Modal not scrolling on Svelte 5.17.1 #3093
Replies: 1 comment 2 replies
-
@nthskyradiated first things first, it looks like you may have mistakenly mixed some Skeleton v2 and v3 packages. v3 represents a major breaking change, so I want to confirm your intentions here.
So I want to clarify if your intention - are you aiming to run v2 or v3? If you wish to use v2 (perhaps this is a existing project you're maintaining) then make sure you've read through the Svelte 5 migration guide. This outlines known issues that you need to be aware of: If you're trying to migrate to Skeleton v3, then we also provide a detailed migration guide for this. Just know it's in a Release Candidate status, and there have been significant changes to many features - include modals.
The TL;DR here is that Skeleton v2 was built to utilize Svelte 4, while Skeleton v3 has been rebuilt from the ground up to support Svelte 5 - including new APIs like the I will warn you that the migration from v2 to v3 is not yet trivial - built we're building some CLI tooling to help with this. And if this is a new project, my personal recommendation would be to start anew with a fresh v3 project if possible. Instructions can be found here. So let's start there, and then we can diagnose the scroll issue once I'm confident of you path forward. |
Beta Was this translation helpful? Give feedback.
-
Hey guys,
I have a Svelte 5.0.0-next.152 app which I finally migrated to 5.17.1 but this caused an overflown modal to not scroll.
sv migrate didn't seem to change anything on the problematic modal.
I have also tried passing in the regionBody: 'overflow-visible' prop but that didn't work. This works on 5.0.0-next even without the prop.
I'm currently on
"@skeletonlabs/skeleton": "^2.10.4"
,"@skeletonlabs/skeleton-svelte": "1.0.0-next.2"
,"@skeletonlabs/tw-plugin": "^0.4.0"
.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions