Custom Emoji Tooltip: Fix playback after insert (#2643)

This commit is contained in:
Alexander Zinchuk 2023-02-22 23:48:55 +01:00
parent 5348726f43
commit d659e559af

View File

@ -121,7 +121,10 @@ export default function useInputCustomEmojis(
return;
}
synchronizeElements();
// Wait one frame for DOM to update
fastRaf(() => {
synchronizeElements();
});
}, [getHtml, synchronizeElements, inputRef, removeContainers, sharedCanvasRef, isActive]);
const throttledSynchronizeElements = useThrottledCallback(