From 07ebc60bc3bcdc8007e368949f764f276173b21f Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 2 Sep 2024 19:57:16 +0200 Subject: [PATCH] Use undefined instead of empty function for onHide (#1348) --- components/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/modal.js b/components/modal.js index 379add41..f785dd89 100644 --- a/components/modal.js +++ b/components/modal.js @@ -70,7 +70,7 @@ export default function useModal () { return ( {} : onClose} show={!!content} + onHide={keepOpen ? undefined : onClose} show={!!content} className={className} dialogClassName={className} contentClassName={className}