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 (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
onHide={keepOpen ? () => {} : onClose} show={!!content}
|
onHide={keepOpen ? undefined : onClose} show={!!content}
|
||||||
className={className}
|
className={className}
|
||||||
dialogClassName={className}
|
dialogClassName={className}
|
||||||
contentClassName={className}
|
contentClassName={className}
|
||||||
|
|
Loading…
Reference in New Issue