Skip to content

Add filter to enqueue autosuggest styles when reindexing #2841

Open
@hugosolar

Description

** Problem **
We have a project that doesn't rely on ElasticPress built-in endpoint for autosuggestions, but we do rely on the styles on the frontend. So when we're running a re-index, the styles break the appearance of the site.

** Possible Solution **
Add a filter to allow enqueuing the autosuggest styles even if the site is being reindexed

Additional context
This change was added here: #2163 because of a Javascript error, so I think enqueuing just the styles won't cause any issues

Activity

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

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions