A new object (that doesn't have a title in the template) has no focus

What’s The Bug?

When I create a new note (CMD+N or via the + icon) and the default template of mine doesn’t have a title, the editor is not focused and I need to manually click on the editor.

How To Reproduce It

  • set an object with a template that doesn’t have a title as the default for new objects
  • create a new note
  • recognize that the editor is not focused and you are not able to type

The Expected Behavior

that the editor is focused

Device

Macbook Pro arm64

OS

Sequoia, latest

Anytype Version

0.43.1

Network Mode

AnySync

Technical Information

OS version: darwin arm64 15.0.1
App version: 0.43.1
Build number: build on 2024-10-24 15:39:45 +0000 UTC at #13f78eee798bc655c87d8aa98a4d50fa42fe1140 (dirty)
Library version: v0.36.4
Anytype Identity: A6yqAdwr7zvv1KHfRvb5B9uUAFoARS2yXsjrCycHHiDe97Bz
Analytics ID: 84cfaec7-579c-4184-a6a4-2c5306d1a396
Device ID: 12D3KooWGHyvDimj9STs8W74z9cpTzD2iMZ9BVJzA8xBURcXnaKK

This report has been added to our issue tracker and received by the Development Team.

This issue has been fixed by the Development Team and will be implemented in an upcoming release.

this is not fixed for me with 0.44

Can you send a video? I’m not able to reproduce it.

sure:

edit: when the backlinks block is not the last one and I create a new line it focuses to it
perhaps Anytype could check if the last line in the template is an empty one and if not, it could create one?

Yeah, it’s an issue with the template. I can reproduce it if I add the backlink relation block.

I also have a side issue with this fix. After object creation, cursor position is not at the top.

Side note: I want my first cursor point to be the VerseRelation instead of any blocks :sweat_smile:

the questions could be:

  • should the user be able to choose the line where the focus will be?

yes

  • should the new object just use the last focus position before the template was closed?
    or
  • should the user be able to mark a line as a focus-line

no

  • should the first empty line Anytype finds be focused?
    or
  • should the last line always be the focused line?

if there is no empty line

  • Anytype should then always create a new empty line at the end of the template

Related post:

That to me seems like intended behavior, but you can write a separate bug report or feature request for this.

Or @krst can write one as well.

This seems to be a related, but separate bug report. We’ve created a separate issue for it in our internal issue tracker.