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

Support overriding backgroundColor for SortableListItem #3255

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

ethanshar
Copy link
Collaborator

Description

Support overriding backgroundColor for SortableListItem
Also fixed several TS issues

Changelog

Support overriding backgroundColor for SortableListItem

Additional info

Copy link
Contributor

@M-i-k-e-l M-i-k-e-l left a comment

Choose a reason for hiding this comment

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

Approved with a question

@@ -84,7 +84,8 @@ const SortableList = <ItemT extends SortableListItemProps>(props: SortableListPr
enableHaptic,
scale
};
}, [data]);
}, [data, onChange]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Did this cause a bug (it looks like this is only affected by the user changing onOrderChange)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You mean it's on purpose?
But if the user changes the onOrderChange, it's not implausible

@M-i-k-e-l M-i-k-e-l assigned ethanshar and unassigned M-i-k-e-l Sep 12, 2024
@ethanshar ethanshar added the Important for Next Release PR that must be included in the release version label Sep 16, 2024
@ethanshar ethanshar merged commit e3bafc4 into master Sep 16, 2024
1 check passed
@ethanshar ethanshar deleted the feat/SortableList_overrideBackgroundColor branch September 16, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Important for Next Release PR that must be included in the release version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants