angular-sortablejs
Advanced tools
Comparing version 2.4.1 to 2.5.0
@@ -35,2 +35,3 @@ export interface SortablejsOptions { | ||
onAdd?: (event: any) => any; | ||
onAddOriginal?: (event: any) => any; | ||
onUpdate?: (event: any) => any; | ||
@@ -37,0 +38,0 @@ onSort?: (event: any) => any; |
@@ -111,5 +111,5 @@ "use strict"; | ||
_this.getBindings().injectIntoEvery(event.newIndex, items); | ||
_this.detectChanges(); | ||
_this.proxyEvent('onAdd', event); | ||
}; | ||
_this.proxyEvent('onAdd', event); | ||
_this.proxyEvent('onAddOriginal', event); | ||
}, | ||
@@ -116,0 +116,0 @@ onRemove: function (event) { |
{ | ||
"name": "angular-sortablejs", | ||
"version": "2.4.1", | ||
"version": "2.5.0", | ||
"description": "SortableJS for Angular", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -223,2 +223,4 @@ # angular-sortablejs | ||
Important: the original `onAdd` event happens before the `onRemove` event because the original library makes it like that. We change this behavior and call 'onAdd' after the 'onRemove'. If you want to work with original onAdd event you can use `onAddOriginal` which happens before `onRemove`. | ||
## SystemJS configuration | ||
@@ -225,0 +227,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44889
390
255