mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 05:02:29 +08:00
🎨 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
@ -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…
Reference in New Issue
Block a user