Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Header text field loosing focus on first edit after keystroke #144

Open
1 task done
Totalus opened this issue Jan 27, 2024 · 0 comments
Open
1 task done

Header text field loosing focus on first edit after keystroke #144

Totalus opened this issue Jan 27, 2024 · 0 comments

Comments

@Totalus
Copy link

Totalus commented Jan 27, 2024

Expected Behavior

When I start typing, I expect the text field not to loose focus.

Actual Behavior

In some cases, when I start editing a header, the text field looses focus after a keystroke.

I observe this happens in the following situations:

  • After creating a new request, when attempting to edit a default header (name or value) for the first time
  • When I attempt to edit a header that was just automatically added or modified (ex: I change the body content type, which automatically updates the Content-Type header, then if I attempt to modify the Content-Type header name or value, the bug happens)

Here's a capture of the bug (its a bit slower on the gif than it actually is). The only action I've done here is click to select the text field, then press "k". You can see the field text kind of glitches and the focus goes away.

2024-01-26-19-09-45

Reproduction Steps

Editing default header fields of a new request

  1. Create a new request
  2. Go to the Headers tab of the new request
  3. Select one of the the text fields (header name or value)
  4. Enter a keystroke
  5. The text field looses its focus

Attempt to edit a header that was automatically added or modified

  1. On whatever request, change the Body content type (ex: switch from JSON to YAML)
  2. Move to the Header tab
  3. Select the Content-Type header name or value text field
  4. Enter a keystroke
  5. The text field looses its focus

Is there an existing issue for this?

Additional Information

This seem to happen when the text fields are automatically filled in or modified by insomnium.

Insomnium Version

0.2.3-a

What operating system are you using?

Windows

Operating System Version

Windows 11 (10.0.22621)

Installation method

scoop.sh

Last Known Working Insomnium version

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant