Toggle in toggle looses text when using "shift+tab"

Describe the bug
When creating a toggle inside a toggle and then wanting to get the child toggle on the same level as the parent toggle, the child toggle uses its text, when the cursor wasn’t placed outside of the toggle text before.

To Reproduce
Steps to reproduce the behavior:

  1. Create toggle
  2. Go into toggle and create another toggle
  3. set name of toggle to something
  4. press “shift+tab”
  5. second toggle looses the text

Expected behavior
The second toggle should keep the text.

System Information:

  • OS: Linux
  • Anytype Version: 0.24.0

The bug still isn’t fixed (Mac user here) but the one way to get around it that I’ve found is to type something in the 2nd toggle before pressing “shift + tab”. Hopefully it’ll be included in the next update

Fixed in 0.28.0