ITADN

Collapsible renders incorrectly when navigating on a page where a remote function is used

#1989Closeddavidbaranek 创建于 2026-03-18
triage
D
davidbaranekcommented
### Describe the bug I have a Collapsible component on every page (used as a menu), and it is always open by default. Then I have a page where I am using the new [remote function](https://svelte.dev/docs/kit/remote-functions#query) with <svelte:boundary> and a [pending snippet](https://svelte.dev/docs/svelte/svelte-boundary). For some reason, when navigating from any page to this page, the Collapsible element closes, even though it appears to remain open (it is in the open state, but its content is hidden by the hidden HTML attribute). I have to click on it twice to see the content again, or reload the page. It seems to be connected to the pending snippet, because when I remove it, everything renders correctly. To reproduce this issue, navigate to the homepage and then click on the Posts item in the sidebar. You will see that the menu becomes hidden. https://github.com/user-attachments/assets/11bcd149-efd7-4ca9-a86e-e5103deb764d ### Reproduction https://stackblitz.com/~/github.com/davidbaranek/bits-ui-collapsible-demo ### Logs ```bash No errors in the console ``` ### System Info ```bash System: OS: macOS 26.2 CPU: (8) arm64 Apple M1 Memory: 132.05 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.17.0 - /opt/homebrew/bin/node Yarn: 1.22.21 - /usr/local/bin/yarn npm: 11.6.2 - /opt/homebrew/bin/npm pnpm: 10.15.1 - /opt/homebrew/bin/pnpm bun: 1.2.23 - /Users/davidbaranek/.bun/bin/bun Deno: 2.7.1 - /usr/local/bin/deno Browsers: Safari: 26.2 npmPackages: @sveltejs/kit: ^2.55.0 => 2.55.0 bits-ui: 2.16.3 => 2.16.3 svelte: ^5.54.0 => 5.54.0 ``` ### Severity annoyance
关闭于 2026-04-04 1 条评论