Skip to content

When multiple modes are enabled fullscreen button does not work as expected #53

Description

@rajmondburgaj

Below is my code:

  <VJsoneditor
    v-model="val"
    :height="'400px'"
    :plus="plus"
    :options="options"
  />
   options: {
      mode: 'code',
      modes: ['text', 'code', 'view'],
      enableSort: false,
      enableTransform: false,
      navigationBar: true,
      statusBar: true,
      history: false,
      search: false
    }
  computed: {
    plus () {
      return this.options.mode === 'code'
    }
  }

In this case the fullscreen button appears correctly because the first selected mode is code, but in case I set another value, for example text, and then switch to code from the dropdown, the button does not appear anymore.

Is this a bug or I am doing something wrong ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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