Skip to content

Commit

Permalink
fix: editor readonly bug (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
elf-mouse committed Jun 16, 2023
1 parent cc25045 commit 5743931
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scripts/components/editor/quill/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ onMounted(() => {
}
);
watch(
() => props.readonly,
(val) => (val ? state.$editor.disable() : state.$editor.enable())
);
document.addEventListener('click', onBlurEmojiHandler);
});
Expand Down

0 comments on commit 5743931

Please sign in to comment.