Unexpected behavior when clicking input fields

Describe the bug

The text areas do not match the dimensions of their input fields. As a result, the user can click outside them and accidentally trigger an unintended action.

To Reproduce

Steps to reproduce the behavior:

    1. Create a new set of objects.
    1. Create new objects so you have some in the set.
    1. Edit the name of one of them by clicking on the pen icon
    1. You can now bring up the object type menu if you click close to the inner edges of the text area (The mouse cursor indicates where the border really is).

Expected behavior

The caret should follow clicks within the borders of the input field.

Desktop (please complete the following information):

  • System:

OS: Pop!_OS 21.04 x86_64

Kernel: 5.11.0-7620-generic

Shell: bash 5.1.4

DE: GNOME 3.38.4

  • Version:

Anytype 0.18.58


Additional context

The click event listener that instantiates the object type modal should be disabled while edit mode is enabled.

Padding should be used instead of margins to align the text area inside the field.

Hey, I cant see the cursor changing anymore in the “Name” column of the set I used for testing this. Is this still happening to you?

@nizos The “solved” tag is set. So i assume this isn’t happening to you anymore?

Seems to be fixed in the current releases. Feel free to write here, if it happens to you again.