mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
Fix reveal (#1563)
Fix race condition in slide show Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
3958ef550d
commit
e84ed1398f
5 changed files with 84 additions and 19 deletions
|
@ -8,7 +8,7 @@ import React, { useCallback, useEffect, useRef } from 'react'
|
|||
|
||||
export const useExtractFirstHeadline = (
|
||||
documentElement: React.RefObject<HTMLDivElement>,
|
||||
content: string,
|
||||
content: string | undefined,
|
||||
onFirstHeadingChange?: (firstHeading: string | undefined) => void
|
||||
): void => {
|
||||
const extractInnerText = useCallback((node: ChildNode | null): string => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue