Skip to content

Commit c4596c0

Browse files
committed
fix: avoid re-rendering editor when typing
1 parent 833a9ed commit c4596c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueLive.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<component :is="this.layout ? this.layout : VueLiveDefaultLayout">
33
<template v-slot:editor>
4-
<PrismEditor :code="model" @change="updatePreview" :language="prismLang"/>
4+
<PrismEditor :code="code" @change="updatePreview" :language="prismLang"/>
55
</template>
66
<template v-slot:preview>
77
<Preview

0 commit comments

Comments
 (0)