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

Toggling diffEditor is not working #147

Open
colinblaise opened this issue Dec 10, 2020 · 1 comment
Open

Toggling diffEditor is not working #147

colinblaise opened this issue Dec 10, 2020 · 1 comment

Comments

@colinblaise
Copy link

colinblaise commented Dec 10, 2020

I have the following code:

<MonacoEditor
              class="monaco-editor"
              language="powershell"
              theme="vs-dark"
              ref="monaco-editor"
              :value="value"
              :options="monacoOptions"
              @change="onChange"
              :original="originalValue"
              :diffEditor="showDiffEditor"
 />

Toggling showDiffEditor does not swap between the normal editor and the diff editor.

Is this expected to work?

@rubennaatje
Copy link

Bit late, but I think this is a monaco issue and not related to this package. Does rerendering with v-if or changing the key work?

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

2 participants