Bard sets miss characters when editing
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, laravel, php
- Domain
- frontend
Research direction
Start from the linked commit 9a4c016b1cbe98d6e9c6a661f8cc3e168cdf5f07 diff to see which field-sync/input logic changed, then reproduce with the linked bard-save-bug repo at /cp/collections/articles/entries/repro-entry. Trace the label field's keystroke handling to find where the second character is overwritten or reverted, and check issue #15501 for overlap. Done when rapid typing at the end of the field no longer drops a character and the existing frontend test suite passes.
Written by the indexing model from the issue text.
Description
Bug description
Bug description
When adding text to certain bard sets, some characters get lost.
How to reproduce
- Clone https://github.com/faltjo/bard-sets-miss-characters
- Open /cp/collections/articles/entries/repro-entry
- Click into the "label" field of one of the card sets and quickly append text to the end of the text already present.
- Notice that the second of the newly typed characters has vanished from the field. Looking closely you can see the character getting deleted while editing. If the error does not occur, try to click into the label field of another card set and start typing immediately. Make sure to set the cursor to the rightmost position.
Logs
Environment
Environment
Laravel Version: 13.31.0
PHP Version: 8.5.10
Composer Version: 2.10.2
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.35.0 PRO
Installation
Fresh statamic/statamic site via CLI
Additional details
The error seems to be introduced with this commit https://github.com/statamic/cms/commit/9a4c016b1cbe98d6e9c6a661f8cc3e168cdf5f07 and might be related to https://github.com/statamic/cms/issues/15501
- Dominant language
- PHP
- Stars
- 4.9k
- Forks
- 647
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 108
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from statamic/cms
-
preferences
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
accessibility
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
[7.x] Reintroduce parser error for mixed pipe/shorthand modifier syntaxPossibly taken A pull request linked to this issue is open or already merged. Openantlers
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
caching nocache
Difficulty 3/5 1-2 days Newbie friendliness 42/100
statamic/cms#15643 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Automattic/blocks-engine#2866 ·
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
backend gamification P0
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
semanadeinformatica/website#461 ·
-
HttpRequestTrait fatals on WordPress 7.2: $blocked_http_requests clashes with WP_UnitTestCase_BaseOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
area: docs eco: php good first issue help wanted lane: free-agent roadmap size: XS type: docs
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
arminazimi/evergreen#453 ·
Maintainers usually reply within 1 day