-
Notifications
You must be signed in to change notification settings - Fork 269
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
feat: Prefix instance id when custom node id is passed #325
base: main
Are you sure you want to change the base?
Conversation
* | ||
*/ | ||
export default class Node { | ||
constructor({ depth, rootPrefixId, parent, index, ...dataProps }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function constructor
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@ellinge @Nogias9x Is this good to go? |
@mrchief the change on the resolved conversation should be reverted? Or was that another change that was needed? |
Yeah it should be. It's been a while so let me take a deep dive. |
Code Climate has analyzed commit 588d40c and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
What does it do?
When a user defined node id is specified, it is used instead of an autogenerated on. When the same data is used across multiple components on the same page, this results in duplicate HTML Ids for tags, tag remove buttons.
Fixes # (issue)
Fixes #315
Also fixes an unreported bug where removing tags by backspace doesn't correctly fire
onTagRemove
event.Type of change
Please delete options that are not relevant.
Checklist: