question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable the disabling of filters when nothing is found

See original GitHub issue

We have a use case where Filters must be kept displayed when there is nothing found. For example when using the RangeFilter, that one must never disappear. But has to be greyed out or something.

Maybe an option which can be passed to the Accessor to turn off the disabling of Filters?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
chrisfinchcommented, Nov 28, 2017

For completeness and for anyone googling here’s a slimmed down example of how I’m using inheritance to enable a ‘No Results’ version of the filter component:

import React from 'react';
import { MenuFilter } from 'searchkit';

export class NoResultsMenuFilter extends MenuFilter {

	render () {
		if (this.accessor.getBuckets().length > 0) {
			return super.render();
		} else {
			return (
				<div>
					No Results!
				</div>
			);
		}
	}

}
2reactions
ssetemcommented, May 13, 2017

But yeh I think we need to make this easier to control, and make consistent across all components which hide when no results, I will brainstorm 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot disable DT Column Filter Shiny Server Pro
I found the issue/bug...if "searching" is set to FALSE (disabling global search) then the column filters do not actually filter. When it is...
Read more >
Enabling or disabling filters - Amazon QuickSight
In the Filters pane that opens, choose the three dots to the right of the filter that you want to disable, and then...
Read more >
Introduce a mechanism to disable existing filters/servlets beans
It is quite possible to include a library which is exposing a Filter/Servlet bean. Please introduce a mechanism for exclusion.
Read more >
Disable part of workflow if no filter returns False
Solved: I have a workflow where I am trying to get only row as output. The issues I have are as follows: 1....
Read more >
HIDE "FILTERS AND SLICERS AFFECTING THIS VISUAL"
Go to Power BI Desktop --> Open your report --> Disable "Visual Header" option for all of your visuals. Under this option, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found