-
Notifications
You must be signed in to change notification settings - Fork 85
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
Code highlight doesn't update unless a model is linked #35
Comments
Hi thanks. |
Exactly! :V But I took a while to realize what the issue was because I am a noob with vue. So I would suggest raising an exception if a model could not be found, and it was kinda weird because it was an error that was happening in the demo too. |
Alright maybe we'll do sth about it :) Cheers. |
Note! Without using <prism-editor
:code="value"
@change="handleChange"
language="html"
:lineNumbers="false"
/> That's a good reason for it to work without v-model. Other than syntax-highlight not updating, |
Hello, I was testing this package and I found it quite interesting, however, I found a issue, which happens in the main demo too. If I update the code, aka, type a new one in the window, the new code won't have a new highlight. If I set a default code, it will have the highlight.
However, if I link it to a data model, the highlight works just fine. Below I gave some snippets.
Also, if that's expected, just ignore me :-P
Browser: Firefox 68.0.1
example code:
With this code the highlight doesn't work
With this code, the highlight work just fine.
Also, if you want a complete working code can be found in my package:
https://github.com/Cerberus1746/PandaCoreData/tree/development/panda_core_data/ui
The text was updated successfully, but these errors were encountered: