Skip to content

Releases: jbomhold3/BlazorSortableJS

2.0.0

01 Jan 12:48

Choose a tag to compare

Changes since preview 4

Bug Fixes (sortableInterop.js)

  1. Fixed clone detection - Changed options.group.pull === 'clone' to evt.pullMode === 'clone'
    • Was incorrectly checking the target list's options instead of the actual drag operation mode
    • Items now drop in the correct position when cloning between lists
  2. Fixed duplicate DOM elements - Added evt.item.remove() in the onAdd handler
    • Sortable.js inserts a cloned DOM element, but Blazor renders its own
    • Removing the Sortable clone prevents duplicate items appearing

New Sortable Component Features (Sortable.razor.cs)

  1. OnItemDropped event - New callback fired when item is dropped (reorder or cross-list)
    - Provides SortableDroppedEventArgs with:
    • Item, TargetSortableId, SourceSortableId
    • NewIndex, OldIndex
    • ItemBefore, ItemAfter
    • IsCrossListMove property
  2. Id parameter - Optional identifier to identify which list received a drop
  3. New helper methods:
    • MoveOrInsertItem(item, newIndex) - For syncing state from external updates
    • RemoveItemIfExists(item) - Removes item if found
    • SyncItems(orderedItems) - Replaces entire list with new order
  4. List reference tracking - Detects when list reference changes (not just contents) to properly re-initialize JS

New E2E Test Suite (BlazorSortableJS.Tests.E2E)

  • 12 PuppeteerSharp tests covering SimpleList, SharedLists, DisableSorting, Nested, and Dynamic examples

2.0.0-Preview3

17 Nov 08:23

Choose a tag to compare

2.0.0-Preview3 Pre-release
Pre-release

Bug Fixes:

  • Moving items extremely quickly could cause the displayed list to get out of sync with the list value.

Adds:

  • FuncOnDataChanged to Sortable

Changes:

  • All JSInvokable Methods are now Tasks, and all previous Fire And Forget calls are now awaited.

This isn't a widely used Library, so testing in my app will then be released.

2.0.0-Preview1

03 Apr 02:15
664f515

Choose a tag to compare

2.0.0-Preview1 Pre-release
Pre-release

Refactored to more closely align with SortableJS. Demo pages updated.

1.0.8

21 May 05:58

Choose a tag to compare

Bump for release

1.0.7

08 Mar 02:13

Choose a tag to compare

Fixes client side issue with Refresh

1.0.6

08 Mar 00:30

Choose a tag to compare

Fixes faulty human error

1.0.5

07 Mar 23:57

Choose a tag to compare

  • SortableGroup is now Obsolete
  • SortableItem is now Obsolete

New Component SortGroup

  • Handles all Javascript Events for you.
  • Better tracks your collection
  • Better handles your direct changes to your collection.

1.0.0-preview6-2

09 Jul 23:40

Choose a tag to compare

1.0.0-preview6-2 Pre-release
Pre-release

##Added

  • SortableGroup Component
  • SortableItem Component

see README.MD and DEMO for usage