From 957591e1c0c0fd9713bd38ca39d94778e0b604dd Mon Sep 17 00:00:00 2001 From: Ozzie Neher Date: Fri, 27 May 2022 10:30:39 +1000 Subject: [PATCH] fixes z-index, removes duplicated modal --- src/stubs/resources/js/Jetstream/Dropdown.tsx | 5 ++- src/stubs/resources/js/Jetstream/Modal.tsx | 43 ------------------- 2 files changed, 3 insertions(+), 45 deletions(-) diff --git a/src/stubs/resources/js/Jetstream/Dropdown.tsx b/src/stubs/resources/js/Jetstream/Dropdown.tsx index 4fff5a5..769e13d 100644 --- a/src/stubs/resources/js/Jetstream/Dropdown.tsx +++ b/src/stubs/resources/js/Jetstream/Dropdown.tsx @@ -41,7 +41,7 @@ export default function JetDropdown({ className="fixed inset-0 z-40" style={{ display: open ? 'block' : 'none' }} onClick={() => setOpen(false)} - > + />
, document.body, ); - - return ReactDOM.createPortal( - -
- -
-
-
-
- - -
- {children} -
-
-
-
, - document.body, - ); }