Skip to content

Command Palette unexpected item gets focus #13695

@robdekort

Description

@robdekort

Bug description

I've noticed at times that when I search for the title of an entry it might take a little while for the results to come back. That is fine. However, in those cases, hits that make way less sense pop up and get focus. See here:

Screen.Recording.2026-01-27.at.21.20.29.mov

I search for an entry called Process, it pops up a little later, but meanwhile some fieldsets that probably shouldn't match in this case get found as well and they remain in focus. So if I were to hit enter I'd end up on a testimonial fieldset.

I suspect the delay here might because the content index got a bit bigger as this site is a WIP.

How to reproduce

Feel free to DM for repo access so you can see for yourself. I'm not sure how to reproduce. I'd guess:

  • Have an index that is not super tiny so content results don't pop up instantly.
  • Search for content that also matches other stuff, like fieldsets.

Logs

Environment

Environment
Application Name: Theory Digital
Laravel Version: 12.48.1
PHP Version: 8.4.17
Composer Version: 2.9.2
Environment: local
Debug Mode: ENABLED
URL: theorydigital.test
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: smtp
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Locales
Installed: en
LaravelLang\Actions\Plugin: 1.11.1
LaravelLang\Attributes\Plugin: 2.14.2
LaravelLang\HttpStatuses\Plugin: 3.11.1
LaravelLang\Lang\Plugin: 15.27.0
LaravelLang\MoonShine\Plugin: INCORRECT
LaravelLang\StarterKits\Plugin: 1.8.0
Locales Version: 2.10.0
Protected: en
Publisher Version: 16.7.1

Livewire
Livewire: v4.1.0

Statamic
Addons: 7
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.0.0-beta.6 PRO

Statamic Addons
marcorieser/statamic-livewire: 5.2.1
rias/statamic-color-swatches: dev-statamic-6
stillat/relationships: dev-patch-1
studio1902/statamic-peak-browser-appearance: 4.0.0
studio1902/statamic-peak-commands: 10.2.0
studio1902/statamic-peak-seo: 10.0.0
studio1902/statamic-peak-tools: 8.1.0

Installation

Fresh statamic/statamic site via CLI

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