Skip to content

Commit

Permalink
Prevent jQuery UI from moving DOM nodes itself, otherwise Ember’s mor…
Browse files Browse the repository at this point in the history
…ph library will lose track of DOM
  • Loading branch information
ebryn committed Jan 22, 2015
1 parent a74d67e commit 1850041
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ Ember.View.extend Ember.AddeparMixins.StyleBindingsMixin,

onColumnSortDone: (event, ui) ->
newIndex = ui.item.index()
@$('> div').sortable('cancel') # Prevent jQuery UI from moving the DOM itself
view = Ember.View.views[ui.item.attr('id')]
column = view.get 'column'
@get('controller').onColumnSort column, newIndex
Expand Down

0 comments on commit 1850041

Please sign in to comment.