Disabling a menu item prevents menu from closing
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start with the linked CodeSandbox and reproduce the issue by decrementing the counter to 0, then inspect the menu behavior in react-contexify 6.0.0. Done means clicking the item disables it while the menu still disappears as usual; verify the behavior in the reported Edge and Windows 11 environment.
Written by the indexing model from the issue text.
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
If clicking a menu item disables an item in the menu, the menu remains on the screen.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below:
https://codesandbox.io/p/sandbox/crimson-thunder-crwcng
I can't figure out the error I'm seeing in the preview, but when I run the code locally it runs fine and demonstrates the problem when you decrement the counter to 0.
What is the expected behavior?
The menu should disappear as usual.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Edge Version 123.0.2420.81 (Official build) (64-bit)
Windows 11
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-scripts": "^5.0.0",
"react-contexify": "6.0.0"
I don't know of a React version where it works.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 133
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fkhadra/react-contexify
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
fkhadra/react-contexify#275 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
fkhadra/react-contexify#269 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
fkhadra/react-contexify#268 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
fkhadra/react-contexify#265 · 2 comments ·
-
RTL supportOpen
Difficulty 4/5 3-5 days Newbie friendliness 25/100
fkhadra/react-contexify#260 · 1 reaction ·
All issues in fkhadra/react-contexify
Similar issues
-
Contrib indemnité de départ à la retraite : faire le pont avec le simulateur sur la page génériqueOpenP1
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SocialGouv/code-du-travail-numerique#7561 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
kubernetes-sigs/headlamp#7950 ·
Maintainers usually reply within 3 days
-
README for cliPossibly taken @Janvi-kapoor claimed this today. OpenOSCI'26
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
GauravKarakoti/SecureFlow#1308 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
vitest-dev/vitest#11577 ·
Maintainers usually reply within 1 day