@plannotator/ui 0.29.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -475,7 +475,7 @@ export const HtmlViewer = forwardRef<ViewerHandle, HtmlViewerProps>(
|
|
|
475
475
|
},
|
|
476
476
|
"*",
|
|
477
477
|
);
|
|
478
|
-
if (!readOnly && vimModeEnabled && iframe === document.activeElement) {
|
|
478
|
+
if (!readOnly && vimModeEnabled && iframe && iframe === document.activeElement) {
|
|
479
479
|
// The initial parent focus can land before the sandbox bridge is ready.
|
|
480
480
|
// Reassert it after configuration so raw HTML enters BLOCK immediately,
|
|
481
481
|
// matching the Markdown surface instead of waiting for the first key.
|