🎨 Improve database table view row drag and drop sorting https://github.com/siyuan-note/siyuan/issues/11048
This commit is contained in:
parent
a6a1b6e2a8
commit
a5976172d4
1 changed files with 5 additions and 0 deletions
|
@ -2614,6 +2614,11 @@ func sortAttributeViewRow(operation *Operation) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
if operation.ID == operation.PreviousID {
|
||||
// 拖拽到自己的下方,不做任何操作 https://github.com/siyuan-note/siyuan/issues/11048
|
||||
return
|
||||
}
|
||||
|
||||
var rowID string
|
||||
var index, previousIndex int
|
||||
for i, r := range view.Table.RowIDs {
|
||||
|
|
Loading…
Add table
Reference in a new issue