-
Notifications
You must be signed in to change notification settings - Fork 77
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
Conversation
newIndex
and oldIndex
within the event calciteListOrderChange
newIndex
and oldIndex
within the event calciteListOrderChange
should only consider list items
newIndex
and oldIndex
within the event calciteListOrderChange
should only consider list itemscalciteListOrderChange
event properties newIndex
and oldIndex
should not be affected by slotted content
calciteListOrderChange
event properties newIndex
and oldIndex
should not be affected by slotted contentnewIndex
and oldIndex
should not be affected by slotted content
newIndex
and oldIndex
should not be affected by slotted contentnewIndex
and oldIndex
should only reflect list item indexes
<calcite-tooltip label="scary tooltip" reference-element="filter-action-test" | ||
>Mind if I offset your index?</calcite-tooltip |
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.
lol, love the labels
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.
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 |
Related Issue: #11397
Summary
oldDraggableIndex
andnewDraggableIndex
from https://github.com/SortableJS/Sortable?tab=readme-ov-file#event-object-demo in order to only track the relevant indexes of draggable items via mouse.newIndex/oldIndex
.