mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix context menu event handling issues (#5917)
* 💄 Change call convention for dashboard grid component * 🎉 Add helper component for easy portal to document * 🐛 Fix context menu event handling issues With this commit, the behavior of context menu and scroll is changed to: close menu on scroll instead of disabling all pointer events while menu is open. The previous behavior causes a second event of context menu open a native browser context menu instead of penpot menu.
This commit is contained in:
@@ -105,10 +105,10 @@ test("Multiple elements in context", async ({ page }) => {
|
||||
|
||||
await button.click({ button: "right" });
|
||||
|
||||
await expect(button.getByTestId("duplicate-multi")).toBeVisible();
|
||||
await expect(button.getByTestId("file-move-multi")).toBeVisible();
|
||||
await expect(button.getByTestId("file-binary-export-multi")).toBeVisible();
|
||||
await expect(button.getByTestId("file-delete-multi")).toBeVisible();
|
||||
await expect(page.getByTestId("duplicate-multi")).toBeVisible();
|
||||
await expect(page.getByTestId("file-move-multi")).toBeVisible();
|
||||
await expect(page.getByTestId("file-binary-export-multi")).toBeVisible();
|
||||
await expect(page.getByTestId("file-delete-multi")).toBeVisible();
|
||||
});
|
||||
|
||||
test("User has create file button", async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user