i18n-manager icon indicating copy to clipboard operation
i18n-manager copied to clipboard

Delete node causes text-boxes to stop working

Open PeterKottas opened this issue 4 years ago • 5 comments

Describe the bug Once you delete a node or a value, you will no longer be able to write in a new text-field (when creating new nodes or value)

To Reproduce Steps to reproduce the behavior:

  1. Create node
  2. Delete node
  3. Create a new node and observe you can no longer write.

Expected behavior It should work

Screenshots If applicable, add screenshots to help explain your problem.

App version: 3.0.3

Desktop:

  • OS: Windows 10

PeterKottas avatar Jun 09 '20 14:06 PeterKottas

Hey @PeterKottas,

I tested on this version with your steps and it didn't happen, could you record a small video or gif showing how you did it, please?

gilmarsquinelato avatar Jun 11 '20 08:06 gilmarsquinelato

Sure thing, here you go: https://screencast-o-matic.com/watch/cY1IF9CtO4

PeterKottas avatar Jun 13 '20 18:06 PeterKottas

It's really weird, on Mac OS it's not occurring, probably it's a Windows related problem. Will need to investigate it. Some solutions that came to my mind is to enforce the focus on the input every time that the dialog appears, and another one is to disable the "Ok" button when no text.

gilmarsquinelato avatar Jun 14 '20 11:06 gilmarsquinelato

The form validation in regards to disabling ok button definitely makes sense. The autofocus is already implemented and I think that's what might be causing the issue. Maybe the component lifecycle is different on windows. If/when it works, it focuses the input automatically. However, when it's broken, there is no way to focus it at all. Mouse or keyboard. Therefore I think it has something to do with some sort of focus trap or the autofocus functionality.

PeterKottas avatar Jun 15 '20 18:06 PeterKottas

Yep, it's weird, need some analysis on this bug.

gilmarsquinelato avatar Jun 15 '20 22:06 gilmarsquinelato