Skip to content

Slow and buggy editing in Bard fields / arrow keys not working #13806

@nunoc66

Description

@nunoc66

Bug description

I'm noticing several performance issues with Bard field types in Statamic 6.1. I can pinpoint exactly what it is, but sometimes it's slow to respond to key presses, and other times it ignores them completely.
Here's what I've seen. Sometimes, when using the arrow keys to move around text, they completely stop working. I've also seen a similar issues with undo and redo, where I'm able to undo typing in the field, but then can't redo it

Unfortunately, I don't have steps to reproduce the issue, and I'm not sure whether it could also affect other fields, since we often click around, editing various fields and going back and forth. At some point while editing an entry, I notice the arrow keys and redo stop working, but it may not be exclusive to those.

I thought this may have been a one-off, but we've now experienced it a handful of times.

How to reproduce

No steps to reproduce besides having a Bard field with 400+ words and editing it.

Logs

Environment

Environment
Application Name: 
Laravel Version: 12.49.0
PHP Version: 8.3.22
Composer Version: 2.8.9
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: mysql
Logs: stack / single
Mail: postmark
Queue: sync
Session: database

Storage
public/storage: NOT LINKED

Livewire
Livewire: v3.7.6

Statamic
Addons: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 6.1.0 PRO

Statamic Addons
statamic/eloquent-driver: 5.0.0

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

Existing Laravel app

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions