Use undefined instead of empty function for onHide (#1348)

This commit is contained in:
ekzyis 2024-09-02 19:57:16 +02:00 committed by GitHub
parent 5e77106297
commit 07ebc60bc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ export default function useModal () {
return (
<Modal
onHide={keepOpen ? () => {} : onClose} show={!!content}
onHide={keepOpen ? undefined : onClose} show={!!content}
className={className}
dialogClassName={className}
contentClassName={className}