Skip to content

Demos with window and without code do not show the previewer when JS is selected #812

@theCapypara

Description

@theCapypara

The previewer does not show if JavaScript is selected as the language and no code exists. It should instead show the "Show external previewer" button.

Additionally the "Run" button also does nothing in this case. I'm not sure if this is intentional, I think this is normal behaviour for external JS demos already.

Steps to reproduce

  1. Select "JavaScript" as the active language on any demo
  2. Select a demo without any code but with a Blueprint/XML file where the parent element is a Gtk.Window or subclass. Example: Navigation Split View
  3. The demo will open and the internal previewer pane is just empty and the "Run" button does not work.
  4. Switching to any other language will resolve this issue. In that case it can even be switched back to JavaScript and Workbench will behave as intended, except for possibly the "Run" button (see above).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions