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(list): drag event properties newIndex and oldIndex should only reflect list item indexes #11402

Merged
merged 5 commits into from
Jan 29, 2025

Conversation

driskull
Copy link
Member

@driskull driskull commented Jan 28, 2025

Related Issue: #11397

Summary

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Jan 28, 2025
@driskull driskull changed the title fix(list): fix newIndex and oldIndex within the event calciteListOrderChange fix(list): newIndex and oldIndex within the event calciteListOrderChange should only consider list items Jan 29, 2025
@driskull driskull marked this pull request as ready for review January 29, 2025 00:58
@driskull driskull changed the title fix(list): newIndex and oldIndex within the event calciteListOrderChange should only consider list items fix(list): calciteListOrderChange event properties newIndex and oldIndex should not be affected by slotted content Jan 29, 2025
@driskull driskull changed the title fix(list): calciteListOrderChange event properties newIndex and oldIndex should not be affected by slotted content fix(list): drag event properties newIndex and oldIndex should not be affected by slotted content Jan 29, 2025
@driskull driskull changed the title fix(list): drag event properties newIndex and oldIndex should not be affected by slotted content fix(list): drag event properties newIndex and oldIndex should only reflect list item indexes Jan 29, 2025
Comment on lines +1488 to +1489
<calcite-tooltip label="scary tooltip" reference-element="filter-action-test"
>Mind if I offset your index?</calcite-tooltip
Copy link
Contributor

Choose a reason for hiding this comment

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

lol, love the labels

Copy link
Contributor

@eriklharper eriklharper left a comment

Choose a reason for hiding this comment

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

LGTM! Did have just one curiosity question: is the newDraggableIndex and oldDraggableIndex something that SortableJS added since this component started using SortableJS?

@driskull
Copy link
Member Author

LGTM! Did have just one curiosity question: is the newDraggableIndex and oldDraggableIndex something that SortableJS added since this component started using SortableJS?

Seems like its been there for quite a while

@driskull driskull added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Jan 29, 2025
@driskull driskull merged commit b36f53e into dev Jan 29, 2025
26 checks passed
@driskull driskull deleted the dris0000/list-sort-event-index-fixes branch January 29, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants