ArchGPT / insomnium

Insomnium is a fast local API testing tool that is privacy-focused and 100% local. For testing GraphQL, REST, WebSockets and gRPC. This is a fork of Kong/insomnia
MIT License
3.3k stars 123 forks source link

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

Open Totalus opened 5 months ago

Totalus commented 5 months ago

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:

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