Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Submenu hidden/disable not identical to Item

Open
#201 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by comparing the disable-hide-submenu documentation with src/components/Submenu.tsx lines 66-69 and the reported Item behavior. Determine whether Submenu should expose data through handlerParams or whether the documentation should state that it is unsupported; done means the implementation and documentation agree.

Written by the indexing model from the issue text.

Description

candidate next release

Do you want to request a feature or report a bug?
Bug either Docs or Submenu component.

What is the current behavior?
handlerParams in Submenu doesn't include data property, which isn't even defined for Submenu.

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://fkhadra.github.io/react-contexify/disable-hide-submenu says it's the same as Item, but it's not.
https://github.com/fkhadra/react-contexify/blob/42e7d2061306e9d9744c1dddc5cae748a9772fce/src/components/Submenu.tsx#L66-L69

What is the expected behavior?
That I can provide data property to Submenu and it will be provided with the handlerParams to the BooleanPredicate just like Item.

OR

Clear documentation that this isn't supported for Submeny

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Version 5 of react-contexify

Dominant language
TypeScript
Stars
1.2k
Forks
133
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fkhadra/react-contexify

All issues in fkhadra/react-contexify

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.