Open schellenbergk opened 7 months ago
I tried:
// reset scroll: const modalBody = useRef<HTMLDivElement>(null); useEffect(() => { if (modalBody.current) modalBody!.current!.scrollTop = 0; }, [trigger, modalBody]); ... <Modal.Body className="p-0 min-h-[300px] aspect-[30/13]" ref={modalBody} >...
but ref is not being passed.
Good catch, solution here is to have every single component (and its sub-components, if any) forward ref.
Summary
I tried:
but ref is not being passed.