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:
parent
7944ff4124
commit
e00107123e
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue