[Bug] visible_if does not work for header setting

Short description of issue

setting of type header cannot be displayed conditionally

Reproduction steps

Create a block In theme app extension with below setting schema.
The expected behavior is that both the header and checkbox should be hidden.

{% schema %}
  {
    "name": "A Block",
    "target": "body",
    "settings": [
      {
        "type": "header",
        "content": "Foobar",
        "visible_if": "{{ false }}"
      },
      {
        "type": "checkbox",
        "id": "checkbox",
        "label": "A checkbox",
        "default": true,
        "visible_if": "{{ false }}"
      }
    ]
  }
{% endschema %}

Then in theme editor, the header Foobar is shown which is unexpected. The checkbox is hidden as expected.

Additional info

From Settings sidebar settings can be displayed conditionally.

From Sidebar settings, header is a sidebar setting. So visible_if should works for it.

What type of topic is this

Bug report

1 Like