Skip to content

Main menu, navigation, and status bars are missing by default with latest dependenciesΒ #133

@tbdrake

Description

@tbdrake

Describe the bug
The main menu, navigation, and status bars are documented as enabled by default, but with latest versions of this library and dependencies they do not show up by default.

To Reproduce
Steps to reproduce the behavior:

  1. Open StackBlitz template: https://stackblitz.com/edit/ang-jsoneditor. Note that main menu and navigation bars are present (status bar only applicable in code or text mode):
    image
  2. Click DEPENDENCIES > Update All to Latest
  3. Note that main menu and navigation bars are no longer present:
    image
    StackBlitz fork showing the issue

Expected behavior
Main menu bar, navigation, and status bars are enabled by default as documented here:

  /**
   * Adds main menu bar - Contains format, sort, transform, search etc. functionality. True
   * by default. Applicable in all types of mode.
   */
  public mainMenuBar: boolean;

  /**
   * Adds navigation bar to the menu - the navigation bar visualize the current position on
   * the tree structure as well as allows breadcrumbs navigation.
   * True by default.
   * Only applicable when mode is 'tree', 'form' or 'view'.
   */
  public navigationBar: boolean;

  /**
   * Adds status bar to the bottom of the editor - the status bar shows the cursor position
   * and a count of the selected characters.
   * True by default.
   * Only applicable when mode is 'code' or 'text'.
   */
  public statusBar: boolean;

Desktop:

  • OS: Windows
  • Browser: MS Edge
  • Ng Version: 16

Additional context
I encountered this issue in an Angular 16 application. We noticed that the main menu bar, navigation bar, and status bar disappeared after updating the application dependencies. To address the issue, we explicitly set the options to true in our application:

    this.editorOptions.mainMenuBar = true;
    this.editorOptions.navigationBar = true;
    this.editorOptions.statusBar = true;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions