Use undefined instead of empty function for onHide (#1348)
This commit is contained in:
parent
5e77106297
commit
07ebc60bc3
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue