Skip to content

Commit

Permalink
Reset sortable-item
Browse files Browse the repository at this point in the history
  • Loading branch information
jacojoubert committed Oct 26, 2021
1 parent 0f315a6 commit cebbe62
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions addon/components/sortable-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,7 @@ export default Component.extend({
spacing: 0,

/**
Removes the ability for the current item to be reordered
@property disabled
@type Boolean
@default false
*/
disabled: false,

/**
Deprecated. Removes the ability for the current item to be reordered
Removes the ability for the current item to be dragged
@property isDraggingDisabled
@type Boolean
@default false
Expand Down Expand Up @@ -276,7 +268,7 @@ export default Component.extend({
*/
_primeDrag(startEvent) {
// Prevent dragging if the sortable-item is destroying or is disabled.
if (this.isDestroying || this.isDisabled) {
if (this.isDestroying || this.get('isDraggingDisabled')) {
return;
}

Expand Down

0 comments on commit cebbe62

Please sign in to comment.