ElasticPress icon indicating copy to clipboard operation
ElasticPress copied to clipboard

Add filter to enqueue autosuggest styles when reindexing

Open hugosolar opened this issue 2 years ago • 0 comments

** 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: https://github.com/10up/ElasticPress/pull/2163 because of a Javascript error, so I think enqueuing just the styles won't cause any issues

hugosolar avatar Jun 16 '22 17:06 hugosolar