Custom Emoji Tooltip: Fix playback after insert (#2643)
This commit is contained in:
parent
5348726f43
commit
d659e559af
@ -121,7 +121,10 @@ export default function useInputCustomEmojis(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronizeElements();
|
// Wait one frame for DOM to update
|
||||||
|
fastRaf(() => {
|
||||||
|
synchronizeElements();
|
||||||
|
});
|
||||||
}, [getHtml, synchronizeElements, inputRef, removeContainers, sharedCanvasRef, isActive]);
|
}, [getHtml, synchronizeElements, inputRef, removeContainers, sharedCanvasRef, isActive]);
|
||||||
|
|
||||||
const throttledSynchronizeElements = useThrottledCallback(
|
const throttledSynchronizeElements = useThrottledCallback(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user