Skip to content

Relationship collapsed state not stored anymore #6726

@rderks88

Description

@rderks88
  • Laravel Version: 10.48.27
  • Nova Version: 5.2.1
  • PHP Version: 8.2

Description:

Laravel nova 4 used to remember the "collapse-state" of the relationships of entities.
After upgrading to Laravel nova 5, it does not do that anymore.

Detailed steps to reproduce the issue on a fresh Nova installation:

  • Create an entity with a hasMany / belongsToMany relationship.
  • Populate both entities
  • Go to the detail page of the "parent" entity.
  • Collapse the relationship view
  • Refresh the page
  • The relationship opens non-collapsed

Extra info

  • I removed all my local storage and cookies before testing.
  • It DOES create a new local storage entry with the collapsed state, e.g. "nova.resources.ingredients.ingredients.collapsed", it doesn't "listen" to this local storage entry though.
  • A collapsed Panel field DOES still maintain it's state after a page refresh (on the contrary to a relationship)
    • As do nav items and so on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions