Skip to content

Creating a Set inside Bard causing odd menu placement #14311

@nunoc66

Description

@nunoc66

Bug description

If you have a Bard field with Sets, whenever you create a new set, the menu that shows the available sets is placed at the very top of the content instead of inline where the + button was clicked.

For longer articles, this could make it look like the Set button isn't working, or causes the users to have to scroll to the top of the article to choose the set they want to create, and then scroll back down.

In this example below, I tried to create a set near the bottom where the + icon is, but the menu appeared all the way at the top, which required me to scroll up to see it.
Image

How to reproduce

In a Bard field, insert a few paragraphs of text. Then make sure the Bard field supports multiple sets. Go to create a set near the bottom of the text and notice that the menu is out of view at the top of the text.

Logs

Environment

Environment
Application Name: Not A Tesla App
Laravel Version: 12.53.0
PHP Version: 8.3.22
Composer Version: 2.8.9
Environment: local
Debug Mode: ENABLED
URL: local.notateslaapp.com:8000
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: postmark
Queue: sync
Session: database

Storage
public/storage: LINKED

Livewire
Livewire: v3.7.10

Statamic
Addons: 1
Sites: 2 (Not A Tesla App, Rivian Wave)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 6.7.1 PRO

Statamic Addons
statamic/eloquent-driver: 5.4.2

Statamic Eloquent Driver
Addon Settings: file
Asset Containers: file
Assets: file
Blueprints: eloquent
Collection Trees: file
Collections: eloquent
Entries: eloquent
Fieldsets: file
Form Submissions: file
Forms: eloquent
Global Sets: eloquent
Global Variables: file
Navigation Trees: file
Navigations: eloquent
Revisions: eloquent
Sites: file
Taxonomies: eloquent
Terms: eloquent
Tokens: file

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions