#10515·nocobase

[Bug] JS Block becomes impossible to edit after disabling "Show block card"

Author: MosesMachuaCreated Sep 16, 2026Updated Sep 17, 2026

* Describe the bug

In a Modern Page (v2), if a JS Block has Show block card disabled, the block becomes completely invisible even while UI Editor is enabled.

The JS still executes, but there is no visible block area or orange hover/configuration menu, so the block can no longer be edited through the UI.

Expected behavior would be:

  • UI Editor OFF: block card can remain hidden
  • UI Editor ON: hidden block should still expose an editor outline/menu so it can be configured again

* Environment

  • NocoBase version: 2.2.12
  • Database type and version: PostgreSQL 16
  • OS: macOS
  • Deployment Methods: Docker
  • Docker image version: nocobase/nocobase:latest-full
  • NodeJS version: N/A / Docker image

* How To Reproduce

  1. Create a Modern Page (v2).
  2. Add a JS Block.
  3. Add working JavaScript code.
  4. Disable Show block card.
  5. Turn UI Editor on.
  6. Try to hover/select the JS Block again.

The JS continues to execute, but the block has no visible editor target or configuration menu.

Expected behavior

When UI Editor is enabled, a hidden JS Block should still show an editor outline, placeholder, or configuration handle so the block can be edited or have Show block card enabled again.

When UI Editor is disabled, the block can remain fully hidden.

Screenshots

N/A

Logs

No console error observed. The JS Block continues to execute normally; the issue is only that the block becomes inaccessible in the UI editor.