mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 09:15:33 +03:00
Use onClose for this
This commit is contained in:
parent
f26dbeb79a
commit
9ea7a1f4db
1 changed files with 2 additions and 4 deletions
|
@ -2316,10 +2316,8 @@ function MediaAttachment({
|
||||||
</div>
|
</div>
|
||||||
{showModal && (
|
{showModal && (
|
||||||
<Modal
|
<Modal
|
||||||
onClick={(e) => {
|
onClose={() => {
|
||||||
if (e.target === e.currentTarget) {
|
setShowModal(false);
|
||||||
setShowModal(false);
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div id="media-sheet" class="sheet sheet-max">
|
<div id="media-sheet" class="sheet sheet-max">
|
||||||
|
|
Loading…
Reference in a new issue