mirror of
https://github.com/atom/atom.git
synced 2026-02-15 00:55:14 -05:00
Do nothing when dragged tab is dropped onto itself
This commit is contained in:
@@ -76,6 +76,7 @@ class TabView extends SortableList
|
||||
|
||||
droppedNearTab = @getSortableElement(event)
|
||||
draggedTab = fromPane.find(".#{TabView.viewClass()} .sortable:eq(#{previousDraggedTabIndex})")
|
||||
return if draggedTab[0] is droppedNearTab[0]
|
||||
|
||||
draggedTab.remove()
|
||||
draggedTab.insertAfter(droppedNearTab)
|
||||
|
||||
Reference in New Issue
Block a user