Skip to content

Fix color picker fields not being editable when opened from a dialog - #8966

Open
Bouh wants to merge 3 commits into
masterfrom
color-picker
Open

Fix color picker fields not being editable when opened from a dialog#8966
Bouh wants to merge 3 commits into
masterfrom
color-picker

Conversation

@Bouh

@Bouh Bouh commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Dialogs trap the focus inside them: since the color picker is rendered in a
Popper (portaled outside of the dialog), the dialog was continuously taking
the focus back, making the hexadecimal and RGB fields impossible to click on
or to type in.

Render the picker inside the dialog container when there is one, so that it
can keep the focus. Pickers displayed outside of a dialog (layers list,
properties panel, events sheet) are unchanged.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_013T6UrohvVR77BsbfUXpfp4

Dialogs trap the focus inside them: since the color picker is rendered in a
`Popper` (portaled outside of the dialog), the dialog was continuously taking
the focus back, making the hexadecimal and RGB fields impossible to click on
or to type in.

Render the picker inside the dialog container when there is one, so that it
can keep the focus. Pickers displayed outside of a dialog (layers list,
properties panel, events sheet) are unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013T6UrohvVR77BsbfUXpfp4
@Bouh
Bouh requested a review from 4ian as a code owner August 15, 2026 16:13
Bouh added 2 commits August 16, 2026 23:41
The exact `.MuiDialog-container` selector was never matching anything: because
themes are nested (see `FullThemeProvider`), Material UI appends a counter to
its global class names (`MuiDialog-container-10242` for example). Match the
class name by prefix instead, so that the picker is really rendered inside the
dialog trapping the focus and its fields become editable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants