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 Fieldtype doesn't work correctly when used in Navigation blueprint #10630

Open
fighter3005 opened this issue Aug 14, 2024 · 1 comment
Open

Comments

@fighter3005
Copy link

Bug description

When trying to select an entry for the link in the sidebar, the overlay opens and closes instantly.

Bildschirmfoto 2024-08-14 um 12 27 44

How to reproduce

Use a table (grid) for a navigation element and put a field inside that opens and overlay, like linking a collection entry.

Logs

No response

Environment

"php": "^8",
"eminos/statamic-tabs": "v1.2.0",
"laravel/framework": "v11.20.0",
"laravel/tinker": "v2.9.0",
"statamic/cms": "v5.21.0",
"thoughtco/statamic-restrict-fields": "v1.1.0"

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

@duncanmcclean
Copy link
Member

duncanmcclean commented Aug 14, 2024

Can you provide the YAML for the navigation's blueprint? You can find it in resources/blueprints/navigation.

Nevermind, just discovered it happens when you use the Link fieldtype anywhere in a navigation blueprint. It's not specific to using it in the context of a Grid fieldtype.

For future reference: it seems like the initialOption/initialSelectedEntries props are empty when you save a nav item, then re-open it (without a page refresh).

@duncanmcclean duncanmcclean changed the title Navigation Element sidebar prevents opening of overlays like editing a site entry for a link in a grid Link Fieldtype doesn't work correctly when used in Navigation blueprint Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants