Why is the parent scroll event getting triggered , when scrolling inside child,
From what I know scroll event doesn’t get bubbled to the parent and only bubbles document itself then why parent scroll event is getting fired, import { useEffect, useRef } from "react"; import "./styles.css"; export default function App() { const refParent = useRef(null); const refChild = useRef(null); useEffect(() => { function handleParent() { console.log("Parent"); }… Read More Why is the parent scroll event getting triggered , when scrolling inside child,