docs: example code causes node_invalid_placement_ssr warning. This fixes the issue#1837
docs: example code causes node_invalid_placement_ssr warning. This fixes the issue#1837benquan wants to merge 1 commit into
Conversation
this Button element causes this warning: ```node_invalid_placement_ssr: `<button>` (src/lib/components/ui/button/button.svelte:60:1) cannot be a child of `<button>` (node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte:34:2) This can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.``` This change fixes huntabyte#1635
|
|
@benquan when you first ran into the issue you're trying to fix, what versions of Because I don't think this issue existed pre-svelte5 and/or pre-bits-ui1.0. |
I am using the latest |
Interesting. Then why are you making changes targeting Since you're on the latest, I recommend using the e.g. https://bits-ui.com/docs/components/dropdown-menu#svelte-transitions |
this Button element causes this warning:
This change fixes #1635