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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TreeView] Throw an error when two items have the same id #11715

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

flaviendelangle
Copy link
Member

@flaviendelangle flaviendelangle commented Jan 17, 2024

Closes #10230

Not required before beta, nothing breaking here 馃憤

@flaviendelangle flaviendelangle self-assigned this Jan 17, 2024
@flaviendelangle flaviendelangle added the component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! label Jan 17, 2024
@flaviendelangle flaviendelangle changed the title [TreeView] Throw an error when to items have the same id [TreeView] Throw an error when two items have the same id Jan 17, 2024
const { render } = createRenderer();

it('should throw an error when two items have the same ID (items prop approach)', function test() {
// TODO is this fixed?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The grid could not run similar tests with karma, I tried a little but did not want to invest to much time on it

@mui-bot
Copy link

mui-bot commented Jan 17, 2024

Deploy preview: https://deploy-preview-11715--material-ui-x.netlify.app/

Generated by 馃毇 dangerJS against bf6226d

@flaviendelangle flaviendelangle marked this pull request as ready for review January 17, 2024 13:03
@flaviendelangle flaviendelangle merged commit 58c5fe8 into mui:next Jan 25, 2024
17 checks passed
@flaviendelangle flaviendelangle deleted the unique-id branch January 25, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TreeView] Should warn when 2 items have the same ID
3 participants