Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(menu): pass key to <MenuDivider /> #5218

Merged
merged 3 commits into from
Nov 17, 2022

Conversation

V-Mann-Nick
Copy link
Contributor

@V-Mann-Nick V-Mann-Nick commented Nov 12, 2022

Description

When { divider: true } was passed as an item to the menu component, it would not pass the key prop causing the react warning for missing keys.

With these changes the current scope's iterator itemIndex is passed as it is passed to the <Option /> component.

Scope

Patch: Bug Fix

When `{ divider: true }` was passed as an item to the menu component
would not pass the key prop causing the react warning for missing keys.

With these changes the current scope's iterator `itemIndex` is passed as
it is passed to the `<Option />` component.
@CLAassistant
Copy link

CLAassistant commented Nov 12, 2022

CLA assistant check
All committers have signed the CLA.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 12, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9771f01:

Sandbox Source
Basic usage Configuration

@chasestarr chasestarr merged commit 8537953 into uber:master Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants