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
Specifically, the Partial<{ top: number; right: number; bottom: number; left: number; }>; works, even though the collisionPadding type definition states it only accepts a number.
This is not a bad thing. In fact, I'm super thankful I tried using the Partial despite the lsp telling me it wouldn't work. It perfectly solved a problem at my work.
I wanted to bring it to your attention because it's undocumented, potentially undesired behavior (though I would be saddened if this was removed).
Describe the bug
The
collisionPadding
prop for the PopoverContent component works perfectly with the floating-uiPadding
type definition.Specifically, the
Partial<{ top: number; right: number; bottom: number; left: number; }>;
works, even though thecollisionPadding
type definition states it only accepts a number.This is not a bad thing. In fact, I'm super thankful I tried using the
Partial
despite the lsp telling me it wouldn't work. It perfectly solved a problem at my work.I wanted to bring it to your attention because it's undocumented, potentially undesired behavior (though I would be saddened if this was removed).
Reproduction
https://stackblitz.com/edit/github-f82ovy?file=src%2Froutes%2F%2Bpage.svelte
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: