fix: stabilize search results order during element drag - #10654
Open
VedantMadane wants to merge 2 commits into
Open
VedantMadane wants to merge 2 commits into
VedantMadane wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
VedantMadane
force-pushed
the
fix-search-results-stable-order
branch
from
February 10, 2026 16:58
8acc993 to
d5be5f3
Compare
Author
|
Small fix to stabilize search result order while dragging elements. Vercel previews are up. Light review welcome when you have a moment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Details
When searching for elements and then dragging one of the matched elements, the search results list would reorder because results were sorted by Y position. As the element's Y position changed during drag, the sort order changed, causing the UI to jump around.
The fix changes the sorting to use element IDs instead, which provides a stable, deterministic order that doesn't change during drag operations.
Test plan
Fixes #9503