Skip to content

Commit

Permalink
scroll action modal to view
Browse files Browse the repository at this point in the history
  • Loading branch information
kleenpulse committed Jul 28, 2024
1 parent ee8bc73 commit a517b54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ProductBodyShadcn = ({

useEffect(() => {
if (!isActionModal || !modalReference.current) return;

modalReference.current.scrollIntoView({ behavior: "smooth" });
// handle click outside modal
const handleOutsideClick = (event: MouseEvent) => {
if (
Expand Down

0 comments on commit a517b54

Please sign in to comment.