Skip to content

Sidebar layout broken and partials misbehaving with Turbolinks #9

@Reion19

Description

@Reion19

Environment setup:

  1. Clone this repo
  2. Install the dependencies via bundle
  3. rails db:create db:migrate db:seed
  4. launch the project via bin/dev(because tailwindcss is used)

AR: Turbolinks broke a cart partial and layout on navbar

ER: When you click on "Add to cart" button, immediately should be displayed an cart partial on the left, in navbar. And! When you add more than one item, navbar shouldn't disappear.

Description and reproduce steps of the issue #1:

Image

On image you can see an catalog of the store.

When you click on to the "Add to cart" button, if the sidebar on the left should be displayed a cart partial but it doesn't.

So, to actually display it, you need to reload the page:

Image

Description and reproduce steps of the issue #2:

When you already have an item in the cart, and you press the "Add to cart" button again, the navbar is disappear away:

Image

Image

The layout becomes normal when you reload the page

Additional info:

ActionCable is used

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions