-
Notifications
You must be signed in to change notification settings - Fork 954
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
Can't focus fields in the Color Picker when shown in a dialog #1748
Comments
I've not checked but I'm pretty sure this only happens when you have a modal opened? This is because the Modal is "trapping" the focus, to avoid it to go out of the modal. Unfortunately, the See mui/material-ui#15694 - seems like a hard problem. |
The breadcrumb of mui 17497 suggests using disableEnforceFocus on the modal itself to so that portals it contains will work as intended. This would mean the user could focus outside of the modal, but that's better than not being able to edit color values. |
This also implies being able to "tab" to other elements in the background, and to be able to do stuff like open other dialogs or change stuff "behind the back" of the current dialog - which sounds risky (in the sense that we'll get people to break GDevelop and deal with bug reports that should not even be possible). Or yet another idea to test - see if we can add a "focus trap" inside the Color Picker when it's opened. After all, opening multiple dialogs works, so we should be able to trap the focus to only the picker. |
Turns out that there was another solution hidden in the thread. Don't use Popper, but Popover (which is slightly less "low level" and works almost the same for our use case!). Fixed in 1fd719f :) |
@4ian I'm not sure that a We have started to use the |
Thanks @oliviertassinari for jumping in the discussion :)
I think that it would be a viable alternative indeed.
That sounds like the "right" fix to this problem. |
@4ian Cool, regarding the |
Describe the bug
The color picker of instructions and scene properties didn't work correctly.
The value Hexa, and RGB in numeric cannot be selected and edit.
I guess this bug occur only because of GenericExpressionField component exist.
Because the color picker in the layer list don't use this component and work fine.
This is a new bug, so it's a regression, bug is present in b93 and b92, but not in b89.
To Reproduce
Steps to reproduce the behavior:
Other details
The text was updated successfully, but these errors were encountered: