Skip to content

Append Target Page Content to Current One on Routing with Flowbite Components #384

@seanwu1105

Description

@seanwu1105

Describe the bug

I try to use Flowbite Action and Navbar components on my root and about pages. However, after adding the components, it seems that SvelteKit append the contents of the target page to the current one and then remove the old contents in a noticeable time.

Recording 2022-10-18 at 17 07 21

Interestingly, this bug only happens after I add some Flowbite components, including Action, Navbar and Card. Some basic components, such as P and A, do not cause this issue.

Reproduction

A minimal example to reproduce this bug can be found here. The project is created according to the instruction on the official website. I can reproduce the bug on macOS and Ubuntu with Chrome and Brave browsers.

Flowbite version and System Info

System:
    OS: macOS 12.5
    CPU: (8) arm64 Apple M1
    Memory: 84.47 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.4.0 - ~/.asdf/installs/nodejs/18.4.0/bin/node
    npm: 8.12.1 - ~/.asdf/plugins/nodejs/shims/npm
  Browsers:
    Brave Browser: 106.1.44.108
    Chrome: 106.0.5249.119
    Safari: 15.6
  npmPackages:
    @sveltejs/kit: next => 1.0.0-next.517 
    flowbite-svelte: ^0.27.8 => 0.27.8 
    svelte: ^3.44.0 => 3.52.0 
    vite: ^3.1.0 => 3.1.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions