Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter to enqueue autosuggest styles when reindexing #2841

Open
hugosolar opened this issue Jun 16, 2022 · 0 comments · May be fixed by #2842
Open

Add filter to enqueue autosuggest styles when reindexing #2841

hugosolar opened this issue Jun 16, 2022 · 0 comments · May be fixed by #2842
Assignees
Labels
enhancement module:autosuggest Issues related to the Autosuggest functionality

Comments

@hugosolar
Copy link

** 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

@hugosolar hugosolar added enhancement module:autosuggest Issues related to the Autosuggest functionality labels Jun 16, 2022
@hugosolar hugosolar linked a pull request Jun 16, 2022 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement module:autosuggest Issues related to the Autosuggest functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants