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

fix(ui): Do not close all menus on right click #41812

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Nov 28, 2023

Summary

Menus should close on unhandled click events in good old jquery land. This handling is a bit too much when paired with the files_rightclick feature. The files_rightclick acts on the click event. On touchpads, using two finger so click right also emits a mouseleave event, too, which wrongly closes all menus, and destroys the hidden element that files_rightlick tries to find when entries in the fake menu are clicked.

28 is not affected.

How to test

  1. Have a notebook with a touchpad (tested on Arch with Wayland and Gnome), enable tapping for clicking in system settings.
  2. Install and enable https://github.com/nextcloud/files_rightclick.
  3. Open Files.
  4. Right click on a file row using two fingers
  5. Click Details

master: nothing happens
here: details sidebar shows

Checklist

@ChristophWurst
Copy link
Member Author

/compile amend /

Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@nextcloud-command nextcloud-command force-pushed the fix/ui/right-click-close-menu branch from 7b66219 to 84fd8b1 Compare November 28, 2023 19:00
Copy link
Contributor

@GretaD GretaD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and works

@ChristophWurst
Copy link
Member Author

/backport to stable26

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 29, 2023
@ChristophWurst ChristophWurst merged commit df4a7dd into stable27 Nov 29, 2023
39 checks passed
@ChristophWurst ChristophWurst deleted the fix/ui/right-click-close-menu branch November 29, 2023 10:51
@ChristophWurst
Copy link
Member Author

/backport to stable26

@solracsf
Copy link
Member

Any reason to target 27.1.6 instead 27.1.5?

@ChristophWurst
Copy link
Member Author

it was the next open milestone

@ChristophWurst
Copy link
Member Author

/backport to stable26

@blizzz blizzz mentioned this pull request Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: files javascript
Projects
Development

Successfully merging this pull request may close these issues.

5 participants