From 4e46d8653e5a31b6e982ae5390b0da2b08284925 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Wed, 9 Sep 2026 17:56:05 +0200 Subject: [PATCH] fix(dialog): close the recipient menu when the permissions modal opens The menu stayed open behind the modal it had just opened, overlapping it. Assisted-by: ClaudeCode:claude-opus-4-8 Signed-off-by: skjnldsv --- lib/dialog/components/RecipientRow.vue | 2 +- tests/ct/RecipientRow.spec.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/dialog/components/RecipientRow.vue b/lib/dialog/components/RecipientRow.vue index f0cf7f2..cc57607 100644 --- a/lib/dialog/components/RecipientRow.vue +++ b/lib/dialog/components/RecipientRow.vue @@ -29,7 +29,7 @@ {{ preset.label }} - + diff --git a/tests/ct/RecipientRow.spec.ts b/tests/ct/RecipientRow.spec.ts index 7f68e08..c1cb70c 100644 --- a/tests/ct/RecipientRow.spec.ts +++ b/tests/ct/RecipientRow.spec.ts @@ -29,4 +29,6 @@ test('opens the custom permissions modal from the menu', async ({ mount, page }) await component.getByRole('button', { name: 'Recipient actions' }).click() await page.getByRole('menuitem', { name: 'Custom permissions' }).click() await expect(page.getByRole('dialog')).toBeVisible() + // The menu has to get out of the way, or it overlaps the modal it opened. + await expect(page.getByRole('menu')).toHaveCount(0) })