gregnb / gregnb/mui-datatables
Hide search Icon and leave search bar on
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
My table options
options:{
search: false,
searchOpen: true,
...
}
I want the hide the icon only and display the search bar
## Expected Behavior
search: false + searchOpen: true
Should hide the icon + display the search bar
## Current Behavior
search bar and icon are both removed
## Steps to Reproduce (for bugs)
https://codesandbox.io/s/vigorous-haslett-40jlf?file=/src/App.js
This sandbox is similar to my table, I have no other buttons so there is nothing to close the search bar. hence I don't need the icon to toggle it.
im forced to put search: 'disabled' at the moment.
Contributor guide
No contributing guide indexed for this repository
Research direction
Open the linked CodeSandbox at src/App.js and inspect how the table options search and searchOpen are configured and rendered. Reproduce the current behavior there, then verify that search: false with searchOpen: true leaves the search bar visible while removing only the icon.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100