elastic / elastic/search-ui

ShowFilter and SaveFilter buttons are being enabled when no results are populated for mobile view

Open
#587 2 comments 0 reactions 0 assignees View on GitHub
bug pinned
Dominant language
TypeScript
Stars
2k
Forks
383
PR merge metrics
No merged PRs in 30d

Description

I have a scenario where search results are not loaded on initial load like below and still shows the Filter button on mobile view.
```
const config = {
.....
.....
apiConnector: connector,
**alwaysSearchOnInitialLoad: false,**
};
```

when i go to browser view/Desktop view, all works fine. But when am on mobile view, i could see the ShowFilter button even though there is no search results.

![image](https://user-images.githubusercontent.com/32370228/135527861-4ded7856-4ecd-493c-afeb-accab22ababb.png)

Thanks
Pradeep

Contributor guide

Open the contributing guide

Research direction

Reproduce the mobile view with alwaysSearchOnInitialLoad set to false and no loaded search results, then compare the ShowFilter and SaveFilter button states with the desktop view. Done means both buttons remain disabled or hidden until results are populated, while the existing desktop behavior continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.