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

Link field with single option breaks pages dropdown on empty state #6186

Closed
purplespider opened this issue Jan 23, 2024 · 0 comments · Fixed by #6192
Closed

Link field with single option breaks pages dropdown on empty state #6186

purplespider opened this issue Jan 23, 2024 · 0 comments · Fixed by #6192
Assignees
Labels
type: bug 🐛 Is a bug; fixes a bug
Milestone

Comments

@purplespider
Copy link
Contributor

Description

When creating a link field and restricting it to only pages, like so:

  link:
    label: Link
    type: link
    options:
      - page

The field looks as expected, however, when you click where it says "Select...", you don't get the dropdown of pages:
GIF showing that clicking on the link field doesn't open the pages dropdown, despite it showing Page is selected.

You have to click on “Page” and then select “Page” (the only option), from the dropdown, then the pages dropdown appears as expected:

GIF showing that when you click Pages then Pages, the pages dropdown now opens.

Expected behavior
For the pages dropdown to appear when clicking "Select" without first needing to click "Pages" > "Pages".

To reproduce

  1. Create a link field with only the page option
  2. Click on "Select..."
  3. Dropdown doesn't appear

Your setup

Kirby Version
4.0.3

Your system (please complete the following information)

  • Device: Mac
  • OS: macOS
  • Browser: Chrome
  • Version: 120
@distantnative distantnative self-assigned this Jan 23, 2024
@distantnative distantnative added the type: bug 🐛 Is a bug; fixes a bug label Jan 23, 2024
@distantnative distantnative added this to the 4.1.0 milestone Jan 23, 2024
@distantnative distantnative linked a pull request Jan 23, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Is a bug; fixes a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants