Closed (fixed)
Project:
Search API Sorts Widget
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2016 at 10:47 UTC
Updated:
20 Nov 2026 at 17:45 UTC
Jump to comment: Most recent
Comments
Comment #2
cosolom commentedComment #3
smulvih2I am having the same issue in Drupal 10 with version 1.0.0-beta4. I can get it working on a view with a page display, but not for a panel page with a search view block display. I can see the block is printing (somewhat), but nothing is visible:
Comment #4
peri22 commentedComment #6
peri22 commentedThe empty form is generated by the widget: even when the sorts block has nothing to display, it still wraps the empty content in a
tag. MR !13 prevents rendering the form in this case and includes a kernel test to cover it.
The sorts themselves remain hidden on Panels pages because Search API does not detect views blocks placed there (ViewsBlock::isRenderedInCurrentRequest()). A custom module can resolve this by marking the block as rendered via the SearchApiEvents::IS_RENDERED_IN_CURRENT_REQUEST event.
Comment #8
peri22 commented