From 98e5551b6aa935a7418159e3a2e3eeb2f983e7c6 Mon Sep 17 00:00:00 2001 From: Tomi Virkki Date: Tue, 8 Oct 2024 14:12:41 +0300 Subject: [PATCH] test: fix grid-pro tests (#260) --- test/Grid.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Grid.spec.tsx b/test/Grid.spec.tsx index a5a8a7b7..e73a6d90 100644 --- a/test/Grid.spec.tsx +++ b/test/Grid.spec.tsx @@ -393,8 +393,8 @@ describe('Grid', () => { element.dispatchEvent(new MouseEvent('dblclick', { bubbles: true })); } - function focusOut(element: Element) { - element.dispatchEvent(new FocusEvent('focusout', { bubbles: true })); + function focusOut(element: HTMLElement) { + element.blur(); } beforeEach(() => {