Add filter to enqueue autosuggest styles when reindexing #2841
Open
Description
opened on Jun 16, 2022
** 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