From 0c47c3c23c4d7caab25d6ae7a787cfa45f049bbc Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Thu, 29 Jul 2021 22:07:42 -0500 Subject: [PATCH] Fixed error in linter --- lib/focus-trap.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/focus-trap.tsx b/lib/focus-trap.tsx index 6e1dc5fef..d886d6df2 100644 --- a/lib/focus-trap.tsx +++ b/lib/focus-trap.tsx @@ -55,10 +55,13 @@ export default function FocusTrap({ children, focusFirst = false }: Props) { } }, [root, children]) - return React.createElement('div', { - ref: root, - children, - className: 'outline-none focus-trap', - tabIndex: -1, - }) + return React.createElement( + 'div', + { + ref: root, + className: 'outline-none focus-trap', + tabIndex: -1, + }, + children + ) }