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

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

Open
rajmondburgaj opened this issue Dec 29, 2021 · 0 comments

Comments

@rajmondburgaj
Copy link

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 ?

@rajmondburgaj rajmondburgaj changed the title When multiple modes are enabled fullscheen button does not work as expected When multiple modes are enabled fullscreen button does not work as expected Dec 29, 2021
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