Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field loses focus after keystroke #8576

Open
2 of 8 tasks
dmvtech opened this issue Aug 18, 2021 · 4 comments · May be fixed by #9509
Open
2 of 8 tasks

Field loses focus after keystroke #8576

dmvtech opened this issue Aug 18, 2021 · 4 comments · May be fixed by #9509
Assignees
Labels
Type: Bug Something isn't working

Comments

@dmvtech
Copy link

dmvtech commented Aug 18, 2021

Describe the bug

When clicking into the Allow Interruptions field and then typing a character, the focus is lost after the first key stroke. I do not know all fields this is limited to. In my case, I am hitting the 'delete' key on my keyboard. But I am hitting the delete key multiple times (as i'm intending to delete multiple characters). This is a disastrous situation in my case as the focus then goes to the central designer pane and then the delete key deletes my prompt that I have created and configured already.

Version

Version: 2.1.0-nightly.264266.2a99641
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Create an expression in the Allow interruptions field
  2. Click away (say to center/designer pane) and then back to "save" (this does not reproduce if you have just entered in the expression.
  3. Click into the field to edit
  4. Hit any keystroke
  5. Notice focus is lost

Expected behavior

Field does not lose cursor/keyboard focus.

Screenshots

losingfocus

Additional context

It's not just the 'delete' key, but any key. As far as I can tell. Here is a screenshot of hitting the 't' key. The t character is entered, focus is lost (and the suggestion/intelisense is shown)
image

@dmvtech dmvtech added Type: Bug Something isn't working Needs-triage A new issue that require triage labels Aug 18, 2021
@dmvtech
Copy link
Author

dmvtech commented Aug 18, 2021

Possibly related?: #8491 (keystrokes and focus)

@tonyanziano
Copy link
Contributor

Can you see if this reproduces in the web build?

@tonyanziano tonyanziano removed the Needs-triage A new issue that require triage label Aug 19, 2021
@dmvtech
Copy link
Author

dmvtech commented Aug 24, 2021

Yes @tonyanziano It reproduces with my build of 2.1.0 and Microsoft Edge Version 92.0.902.73 (Official build) (64-bit).

@tonyanziano
Copy link
Contributor

Seems like this is not an Electron issue then, and could be a React re-rendering issue.

@ceciliaavila ceciliaavila self-assigned this Feb 6, 2023
@ceciliaavila ceciliaavila linked a pull request Feb 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants