Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #17 from teambition/feature/fix-cell-moving-issue
Browse files Browse the repository at this point in the history
fix: fix cell moving issue
  • Loading branch information
HorexC authored Mar 18, 2019
2 parents 2d158f4 + 0c5e0da commit f13ff45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STTableBoard/Extensions/STTableBoard+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ extension STTableBoard {
func endMovingRow(_ callDataSource: Bool = true) {
let sourceTableView = boards[sourceIndexPath.board].tableView

if dropMode == .board, let destinationBoardIndex = self.destinationBoardIndex {
if dropMode == .board, let destinationBoardIndex = destinationBoardIndex, destinationBoardIndex != originIndexPath.board {
dataSource?.tableBoard(self, moveRowAt: sourceIndexPath, toDestinationBoard: destinationBoardIndex)
rowDidBeRemovedFromTableView(sourceTableView!)
UIView.animate(withDuration: 0.33, animations: {
Expand Down

0 comments on commit f13ff45

Please sign in to comment.