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
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.
Reproduction Steps
Editing default header fields of a new request
Create a new request
Go to the Headers tab of the new request
Select one of the the text fields (header name or value)
Enter a keystroke
The text field looses its focus
Attempt to edit a header that was automatically added or modified
On whatever request, change the Body content type (ex: switch from JSON to YAML)
Move to the Header tab
Select the Content-Type header name or value text field
Enter a keystroke
The text field looses its focus
Is there an existing issue for this?
[X] I have searched the issue tracker for this problem.
Additional Information
This seem to happen when the text fields are automatically filled in or modified by insomnium.
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.
Reproduction Steps
Editing default header fields of a new request
Attempt to edit a header that was automatically added or modified
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