You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I write code like let(here I press space), the space doesn't get entered, instead, a suggestion box might appear saying "send: ...", and sometimes it might not appear.
Insomnia Version
8.6.1
What operating system are you using?
Windows
Operating System Version
windows 10 pro 19045.3570 22h2
Installation method
downloaded release for win platform from repo
Last Known Working Insomnia version
8.5.1
The text was updated successfully, but these errors were encountered:
kolindes
changed the title
When writing code in the TESTS section the cursor gets stuck
The input gets stuck when typing JS code in the tests section
Feb 15, 2024
The issue occurs due to the use of the <ListBox> and <ListBoxItem> elements inside of test-suite.tsx. They appear to be capturing the space event (on occasion) before the keydown event fires within the CodeEditor textara somehow.
Unless someone can figure out how to prevent this event from being captured (as far as I can tell, there is no attribute/option to prevent this behavior), the best solution to this problem is to use an alternative container. For example, using a basic <div> instead of a <ListBox> solves the issue.
I'll attach a pull request to this thread; however, do be aware that using a <div> breaks the drag & drop (reordering) feature that was introduced by #7020. There are other ways to "reintroduce" this feature using <div> elements, and I would love to, but this is outside of my area of expertise.
Expected Behavior
When writing tests, text input feels just the same as in any text editor -- freely
Actual Behavior
When entering js in the test section, the cursor seems to get stuck and doesn't allow you to enter a space/next characters until you press ESC
Reproduction Steps
let test = 1;
Is there an existing issue for this?
Additional Information
When I write code like
let(here I press space)
, the space doesn't get entered, instead, a suggestion box might appear saying "send: ...", and sometimes it might not appear.Insomnia Version
8.6.1
What operating system are you using?
Windows
Operating System Version
windows 10 pro 19045.3570 22h2
Installation method
downloaded release for win platform from repo
Last Known Working Insomnia version
8.5.1
The text was updated successfully, but these errors were encountered: