Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tbdrake opened this issue Dec 29, 2023 · 0 comments

Comments

@tbdrake
Copy link

tbdrake commented Dec 29, 2023

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;
@tbdrake tbdrake changed the title Main menu bar is missing by default with latest dependencies Main menu, navigation, and status bars are missing by default with latest dependencies Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant