gregnb / gregnb/mui-datatables

When "searchOpen" option is set to true and pressing escape key closes the search bar.

Open
#1,203 5 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

When "searchOpen" option is set to true, and pressing the Escape key is closing the search bar. Is it possible to open the search bar even if we press the Esc key?

## Expected Behavior
It should not close the search bar if we press the escape key.

## Current Behavior
Set the "searchOpen" to true. After rendering in UI, press the Esc key which closes the search bar.

## Steps to Reproduce (for bugs)

code sandbox
[https://codesandbox.io/embed/muidatatables-custom-toolbar-q078r?fontsize=14&hidenavigation=1&theme=dark](url)

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 4.6.1 |
| MUI-datatables | 2.12.4 |
| React | |
| browser | |
| etc | |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked CodeSandbox reproduction and trace the searchOpen option together with the Escape-key behavior in the search bar. Done means pressing Escape while searchOpen is true no longer closes the search bar, while the reported behavior remains reproducible for other cases.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.