1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-12 10:40:25 +09:00

Editor | DND below or above a link to object always results in dropping inside this link (#1931)

This commit is contained in:
Evgenii Kozlov 2021-11-15 17:38:58 +03:00 committed by GitHub
parent 7944ff4124
commit e00107123e
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@
* Editor | Should not crash when failed to parse an object's layout due to incorrect format (#1929)
* Editor | Should not crash when the target block is not found for the style panel (#1929)
* Editor | Should not crash when long-pressing empty space in the header when object layout has no title (#1930)
* Editor | Drag-and-dropping below or above a link to object always results in dropping inside this link (#1931)
## Version 0.4.0

View file

@ -5176,7 +5176,7 @@ class EditorViewModel(
val targetBlock = blocks.find { it.id == target }
val targetContext = if (targetBlock?.content is Content.Link) {
val targetContext = if (targetBlock?.content is Content.Link && position == Position.INNER) {
targetBlock.content<Content.Link>().target
} else {
context