From ae1e40aeeefadf67fbad293d13e1d38b64aff449 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Sat, 4 Jul 2026 21:55:14 +0330 Subject: [PATCH] feat: enable portal rendering for ImageCropModal component --- assets/admin/components/ImageCropModal.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/admin/components/ImageCropModal.tsx b/assets/admin/components/ImageCropModal.tsx index 1b728e51..eed4ea11 100644 --- a/assets/admin/components/ImageCropModal.tsx +++ b/assets/admin/components/ImageCropModal.tsx @@ -1,4 +1,5 @@ import { useCallback, useState } from 'react'; +import { createPortal } from 'react-dom'; import Cropper, { type Area } from 'react-easy-crop'; import { getCroppedImage } from '../lib/cropImage'; @@ -28,7 +29,7 @@ export default function ImageCropModal({ src, fileName, onCancel, onConfirm }: I } }; - return ( + return createPortal(