jgraph / jgraph/drawio

Color picker makes the PWA window unfocusable

Open
#5,671 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-info
Dominant language
JavaScript
Stars
8.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Preflight Checklist
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug
When using the color picker, the picker window will get the focus and make the main window lose the focus. When the picker window is closed, the main window cannot be restored.

To Reproduce
Steps to reproduce the behavior:

  1. open the PWA application
  2. set the fill color, line color, text color, etc;
  3. click pick color to open the picker window;
  4. click the main window, and the focus cannot be obtained;
  5. press ESC to close the picker window, but the main window focus cannot be obtained still.

Expected behavior
Clicking the main window when the picker window is open will directly close the picker window and make the main window get focus; The main window should get focus after the picker window is closed in any way.

Screenshots
Always unfocusable

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 30.3.6

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: edge
  • Browser Version: 150.0.4078.48

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

  • yes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the PWA on Windows 11 with Edge 150.0.4078.48, focusing on the color picker window and its focus lifecycle. Trace how the picker opens, how the main window is clicked, and how the picker closes; the work is done when the main window reliably regains focus after either interaction or dismissal.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.