Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v4] Adding a sortBy to a structure crashes the browser when accessing it via the panel #5448

Closed
samzzi opened this issue Aug 2, 2023 · 0 comments · Fixed by #5450
Closed
Assignees
Milestone

Comments

@samzzi
Copy link
Contributor

samzzi commented Aug 2, 2023

Description

When you add a sort to a structure field and open the structure item via the panel the browser completely crashes / hangs. (Nothing works anymore, I need to close it to carry on)

You'll see the bug in action in this video, at the end you will see that the browser becomes unresponsive. https://x.gnx.li/8Xgk1TWp

Expected behavior
No crashing browser.

To reproduce

  • Add a sortBy to a structure field.

ex.:

title: Default Page

columns:
  main:
    width: 2/3
    sections:
      fields:
        type: fields
        fields:
          structureField:
            type: structure
            label: Structure field
            sortBy: test asc
            fields:
              test:
                type: text
                label: Test
  • Go to the panel and try to add or edit an item in the structure
  • Browser hangs

Your setup

Kirby Version
4.0.0-alpha.6

Console output
Nothing

Your system (please complete the following information)

  • Device: Apple studio
  • OS: macOS Ventura 13.4.1
  • Browser: Tested on chrome and safari (latest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants