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

Input field looses focus #4559

Closed
nikku opened this issue Sep 26, 2024 · 20 comments
Closed

Input field looses focus #4559

nikku opened this issue Sep 26, 2024 · 20 comments
Assignees
Labels
BPMN bug Something isn't working Camunda 8 Flags an issue as related to Camunda 8 good first issue Good for newcomers properties panel spring cleaning Could be cleaned up one day ux
Milestone

Comments

@nikku
Copy link
Member

nikku commented Sep 26, 2024

Describe the bug

If I type in the Task Definition > Retries field the input looses focus. The same issue can be replicated across different types of FEEL (optional) fields.

capture wR68uZ_optimized

Steps to reproduce

  1. Write = some expression into a Task Definition > Retries field
  2. Remove expression (all content)
  3. Type = s again in the field
  4. Input is no longer focussed

Expected behavior

Input keeps focus when field turns into an expression field

Environment

  • OS: Linux
  • Camunda Modeler Version: v5.28.0 (works in v5.27.0)
  • Execution Platform: Camunda 8
  • Installed plug-ins: None

Additional context

No response

@nikku nikku added bug Something isn't working BPMN ux good first issue Good for newcomers spring cleaning Could be cleaned up one day Camunda 8 Flags an issue as related to Camunda 8 properties panel labels Sep 26, 2024
@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

I can reproduce it in v5.28 but cannot in v5.27.

@nikku
Copy link
Member Author

nikku commented Sep 26, 2024

I cannot reproduce this in the core libraries (bpmn-js-properties-panel main) either.

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

Let's check if we can reproduce it before the form-js update.

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

camunda-bpmn-js#main works fine

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

74bf225 is good (before form-js update)

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

This one is broken by 8f6662d too. So it's form-js update again.

@barmac barmac self-assigned this Sep 26, 2024
@nikku
Copy link
Member Author

nikku commented Sep 26, 2024

I cannot reproduce this via core, so likely inconsistent code-mirror update.

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

This is more than just lost focus:

Screen.Recording.2024-09-26.at.14.20.09.mov

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

Right now I am puzzled. The bug is not present in the forms though (there's flickering but it's a different topic):

Screen.Recording.2024-09-26.at.14.25.12.mov

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

Current guess is that it's something about preact or diagram-js-ui.

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

So @bpmn-io/properties-panel ships with preact@10.19.3, and there is also preact@10.11.3 in node_modules.

@nikku
Copy link
Member Author

nikku commented Sep 26, 2024

Both are (should be) isolated from each other though.

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

Yes, and this does not change with the broken commit.

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

Any ideas?

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

Right now, the only solution I can see is to revert the update, and figure this out later.

@nikku
Copy link
Member Author

nikku commented Sep 26, 2024

Revert #4535 along with #4558 and see if this still works.

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

Let's try this.

@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

LOL. I installed the outdated forms dependencies and pinned them, but that did not fix the problem :D

barmac added a commit that referenced this issue Sep 26, 2024
This reverts commit 8f6662d.

Closes #4559
@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Sep 26, 2024
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Sep 26, 2024
@barmac
Copy link
Contributor

barmac commented Sep 26, 2024

"Fix" coming via #4563

nikku pushed a commit that referenced this issue Sep 26, 2024
@nikku
Copy link
Member Author

nikku commented Sep 26, 2024

Closed via #4563.

@barmac barmac closed this as completed Sep 26, 2024
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Sep 26, 2024
@github-actions github-actions bot added this to the M81 milestone Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN bug Something isn't working Camunda 8 Flags an issue as related to Camunda 8 good first issue Good for newcomers properties panel spring cleaning Could be cleaned up one day ux
Projects
None yet
Development

No branches or pull requests

2 participants