-
Notifications
You must be signed in to change notification settings - Fork 830
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
Holding click and moving disables selection in events sheet #1562
Comments
This is to be checked with the updated autocomplete that was merged in master. |
I will verify it once. |
@4ian this happens only with the inline editor, otherwise, autocomplete does not make a selection and the menu stays open. I have checked the demos, and this is how it is handled by the material-ui too. |
Interesting! So the auto complete works well without ClickAwayListener, but when a ClickAwayListener is used (i.e: in InlinePopover), it's creating issues (can you recap which issue? on touch screen? Sorry I'm a bit confused in this thread) As possible, we should have the autocomplete to work as the material-ui autocomplete. |
Alright @4ian, I'd try to explain what I could understand so far. Basically, ClickAwayListerner does not consider the menu of Autocomplete (or Downshift, too) as a part of the 'element'. So, when we click on the menu item, in the way described in this issue by @PascalLadalle, it is considered as a click outside of the element by the ClickAwayListener. Also, this is worse for touch, every touch on the menu is considered as a touch outside the element, so it's not possible to select options by touch in any way at all. |
I think so! Might be worth looking in material-ui issues if there is something that was reported.
Sounds like a portal issue. But I think this is indeed more related to material-ui than GDevelop... could be good to report or see if we can have a workaround. |
True. (I didn't know about portal before :p I looked through react and material-ui docs just now)
It does solve the issue but also makes a mess of the entire autocomplete component, the menu renders on top of the text field and there are scroll bars everywhere. |
Yep, not a convincing solution. I would rather see a solution being done in material-ui, seems like it's reported here: mui/material-ui#18586 Seems like the solution is complex/involves fixes/changes in React itself. |
Describe the bug
When choosing an item in a list, if you release click on a different item than the one you pressed the click on, the selection doesn't occur.
Example:
Here, I press click on Ssmoke, move the cursor to Tsmoke and release the click.
Expected result: Tsmoke is selected.
Actual result: the menu closes but the object has not been selected.
Note: with the right-click actions/conditions menu, the item isn't selected either, but the menu remains open, which makes it less of a problem.
The text was updated successfully, but these errors were encountered: