mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 22:41:39 +02: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:
parent
dda9f62504
commit
24cb1728b0
8 changed files with 108 additions and 84 deletions
|
@ -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 }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue