feat: add renderGhost option for customizing drag ghost element content#274
Open
AlexDev404 wants to merge 5 commits intoAlfred-Skyblue:mainfrom
Open
feat: add renderGhost option for customizing drag ghost element content#274AlexDev404 wants to merge 5 commits intoAlfred-Skyblue:mainfrom
renderGhost option for customizing drag ghost element content#274AlexDev404 wants to merge 5 commits intoAlfred-Skyblue:mainfrom
Conversation
Agent-Logs-Url: https://github.com/AlexDev404/vue-draggable-plus/sessions/ab05f7aa-be9e-44c6-953d-9357c33d92e4 Co-authored-by: AlexDev404 <34188635+AlexDev404@users.noreply.github.com>
Agent-Logs-Url: https://github.com/AlexDev404/vue-draggable-plus/sessions/ab05f7aa-be9e-44c6-953d-9357c33d92e4 Co-authored-by: AlexDev404 <34188635+AlexDev404@users.noreply.github.com>
…tent Add `renderGhost` option for customizing drag ghost element content
✅ Deploy Preview for vue-draggable-plus ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Sortable.ghost only exists when SortableJS runs in fallback mode. Without forceFallback: true, the browser uses native HTML5 drag images and Sortable.ghost is null, causing renderGhost to silently do nothing. Agent-Logs-Url: https://github.com/AlexDev404/vue-draggable-plus/sessions/394b261e-0741-4931-b40a-c8c82be32096 Co-authored-by: AlexDev404 <34188635+AlexDev404@users.noreply.github.com>
fix: auto-enable forceFallback when renderGhost is provided
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.
This serves to add
renderGhostto the component, allowing users to customize the ghost image of the drag and drop action.Usage
Component usage:
Or with the composable: