Skip to content

Nested bard set cursor jumps to end and miss characters when editing #15730

Closed

Description

@faltjo

Bug description

When adding text to certain bard sets, cursor jumps to the end of the field and some characters get lost.
This is a follow up of: #15588

How to reproduce

  1. Clone https://github.com/faltjo/bard-sets-miss-characters
  2. Make sure to checkout this commit: faltjo/bard-sets-miss-characters@481813b
  3. Open /cp/collections/articles/entries/repro-entry4. Click into the "sub-content" field of one of the "Section" sets and quickly append text to the end of the first sentence there.
  4. Notice that the cursor eventually jumps to the end of the field. If you type fast enough characters also get deleted. If this behavior does not occur, try the same thing in the "sub-content" field of the second set.

This does not happen if you type slow enough and wait for some time (more than approx. 500 ms) between your keystrokes.

Logs

Environment

Environment
Laravel Version: 13.38.0
PHP Version: 8.5.12
Composer Version: 2.10.3
Environment: local
Debug Mode: ENABLED
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: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 0
License Key: Not set
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.38.0 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

The minimal example in #15588 seems to be fixed.
But in case of nested bard sets (see updated example) the fix is insufficient.

Seems to be related to: #15501 and #15659

Activity

  1. duncanmcclean commented on Oct 27, 2026

    @duncanmcclean
    Member

    Fixed by #15717, which will be part of the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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