diff --git a/packages/block-editor/src/components/block-toolbar/utils.js b/packages/block-editor/src/components/block-toolbar/utils.js index 7f7accf7c8784..da64ca0bfb348 100644 --- a/packages/block-editor/src/components/block-toolbar/utils.js +++ b/packages/block-editor/src/components/block-toolbar/utils.js @@ -59,6 +59,8 @@ export function useDebouncedShowMovers( { [ isFocused ] ); + useEffect( () => () => clearTimeout( timeoutRef.current ), [] ); + return { showMovers, debouncedShowMovers,