Update frontend/src/core/tools/Sign.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Reece Browne
2025-11-18 12:24:45 +00:00
committed by GitHub
parent 71dcbf9c12
commit 3deb9f3dbe

View File

@@ -130,6 +130,9 @@ const Sign = (props: BaseToolProps) => {
if (hasSignatureReady) {
if (typeof window !== 'undefined') {
// TODO: Ideally, we should trigger handleActivateSignaturePlacement when the viewer is ready.
// However, due to current architectural constraints, we use a 150ms delay to allow the viewer to reload.
// This value was empirically determined to be sufficient for most environments, but should be revisited.
window.setTimeout(() => {
handleActivateSignaturePlacement();
}, 150);