getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

[v4] Navigating through the link field inside a structure always show the dropdown as url, it does not update to the correct "type" #5814

Closed wdebusschere closed 1 year ago

wdebusschere commented 1 year ago

Description

Navigating through the link field inside a structure always show the dropdown as url, it does not update to the correct "type": ex. page, file,... Editing a link directly by clicking on the link itself in the structure table works!

Expected behavior
Correct link type Page for example.

Screenshots

Screenshot 2023-10-18 at 11 35 59

To reproduce

  1. Create a structure with the link field
  2. Add multiple links to the structure.
  3. Navigate with the next arrow to the next link and if it's a page, the dropdown is still url

Your setup

Kirby Version
4.0.0-beta.2

afbora commented 1 year ago

I can't reproduce the issue. My tested blueprint is:

fields:          
  structure:
    type: structure
    fields:
      link:
        type: link
wdebusschere commented 1 year ago

@afbora

Add 3 links of 3 different types (page, url, file). Then click on 1 of them on the table, and navigate to the next one.

Example click on the page link, then go to the next link = url, the dropdown is still page..

Screenshot 2023-10-18 at 11 58 34

afbora commented 1 year ago

Oh, I can reproduce the issue with different types. But I also good news that this issue seems fixed in beta.3. You can test beta.3 here kirby.zip

Please let me know if you've still have the issue.