Regression: Room not scrolling to bottom (#20516)
parent
166d6e52fa
commit
2c81c0ead1
@ -0,0 +1,9 @@ |
||||
import { useRef, useEffect } from 'react'; |
||||
|
||||
export const useBlockRendered = () => { |
||||
const ref = useRef(); |
||||
useEffect(() => { |
||||
ref.current.dispatchEvent(new Event('rendered')); |
||||
}, []); |
||||
return { className: 'js-block-wrapper', ref }; |
||||
}; |
Loading…
Reference in new issue