-
Notifications
You must be signed in to change notification settings - Fork 350
fix(Dropdown): set index correctly #3138
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(Dropdown): set index correctly #3138
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
📦 Bundle Size Analysis ✅ No bundle size changes detected. Unchanged Components
📊 Summary:
|
User description
https://monday.monday.com/boards/3532714909/views/80492480/pulses/18072990259
PR Type
Bug fix
Description
Modified index assignment in dropdown options to mutate items directly
Added
indexproperty toBaseListItemDatatype definitionChanged from spread operator to direct mutation for index tracking
Diagram Walkthrough
File Walkthrough
BaseListItem.types.ts
Add index property to BaseListItemData typepackages/core/src/components/BaseListItem/BaseListItem.types.ts
indexproperty toBaseListItemDatatypedropdownUtils.ts
Fix index assignment using direct mutationpackages/core/src/components/next/Dropdown/utils/dropdownUtils.ts