Issue: With Hugo, when the preview is opened, every update reloads the CMS panel and the preview steals the input focus! #714

Closed
opened 2026-10-05 03:01:48 +02:00 by adam · 4 comments
Owner

Describe the bug
Issue: With Hugo, when the preview is opened, every update reloads the CMS panel and the preview steals the input focus!

To Reproduce
Steps to reproduce the behavior:

  1. Create a site
  2. Open the preview window
  3. Type a sentence of text as new content
  4. Cannot complete the sentence as input key focus is stolen by the preview browser panel

Expected behavior
Being able to input text uninterrupted.

Device:

  • OS: Win11
  • Front Matter CMS: eliostruyf.vscode-front-matter-beta Version 10.8.13176977
  • Browser: None (Preview panel in VS Code)
**Describe the bug** Issue: With Hugo, when the preview is opened, every update reloads the CMS panel and the preview steals the input focus! **To Reproduce** Steps to reproduce the behavior: 1. Create a site 2. Open the preview window 3. Type a sentence of text as new content 4. Cannot complete the sentence as input key focus is stolen by the preview browser panel **Expected behavior** Being able to input text uninterrupted. **Device:** - OS: Win11 - Front Matter CMS: eliostruyf.vscode-front-matter-beta Version 10.8.13176977 - Browser: None (Preview panel in VS Code) <!-- github-sync-id:2840289009 -->
adam closed this issue 2026-10-05 03:01:48 +02:00
Author
Owner

@bernhardkaindl, that is odd behavior, as I don't see this happening. I've also been using Hugo for a long time and never stumbled upon this issue.

I created a new site via the getting started guide from Hugo, and made a first post on which I tried to lose the focus.

https://github.com/user-attachments/assets/4b13df50-be11-448c-aee2-ec05a0b2e6fd

This was tested on macOS, will now do the same for Windows.

@bernhardkaindl, that is odd behavior, as I don't see this happening. I've also been using Hugo for a long time and never stumbled upon this issue. I created a new site via the getting started guide from Hugo, and made a first post on which I tried to lose the focus. https://github.com/user-attachments/assets/4b13df50-be11-448c-aee2-ec05a0b2e6fd > This was tested on macOS, will now do the same for Windows. <!-- github-comment-id:2653333208 -->
Author
Owner

I just tested on Windows, and I had a similar experience as above. Can it be another extension that is causing this?

I just tested on Windows, and I had a similar experience as above. Can it be another extension that is causing this? <!-- github-comment-id:2653473713 -->
Author
Owner

The same thing happens to me in Windows 11.
When I press Ctrl+S to save, the panel reloads and the focus disappears from the text editor.

But only when the preview window is open.

There is no other extensions enabled in the workspace.

Extension version:
10.9.0

VS Code:
Version: 1.105.1 (user setup)
Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200

The same thing happens to me in Windows 11. When I press Ctrl+S to save, the panel reloads and the focus disappears from the text editor. But only when the preview window is open. There is no other extensions enabled in the workspace. **Extension version:** 10.9.0 **VS Code:** Version: 1.105.1 (user setup) Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084 Date: 2025-10-14T22:33:36.618Z Electron: 37.6.0 ElectronBuildId: 12502201 Chromium: 138.0.7204.251 Node.js: 22.19.0 V8: 13.8.258.32-electron.0 OS: Windows_NT x64 10.0.26200 <!-- github-comment-id:3409347265 -->
Author
Owner

That's Hugo, not any extension. It makes the dev server unusable every now and then because it steals focus from wherever you are (for instance the Front Matter Dashboard) to focus the browser into the front. The only way is to move to a hugo version that is NOT breaking. v0.147.0 did it; newer versions might be fixed again or disable live-reload in your Hugo site.

That's Hugo, not any extension. It makes the dev server unusable every now and then because it steals focus from wherever you are (for instance the Front Matter Dashboard) to focus the browser into the front. The only way is to move to a hugo version that is NOT breaking. v0.147.0 did it; newer versions might be fixed again or disable live-reload in your Hugo site. <!-- github-comment-id:3413553248 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#714