Skip to content

Commit

Permalink
fix: add optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Mar 24, 2021
1 parent c7821a4 commit 965b9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/QuillEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const QuillEditor = defineComponent({
if (props.theme !== "bubble") editor.value.classList.remove("ql-bubble");
if (props.theme !== "snow") editor.value.classList.remove("ql-snow");
// Fix clicking the quill toolbar is detected as blur event
quill.getModule("toolbar").container.addEventListener("mousedown", (e: MouseEvent) => {
quill.getModule("toolbar")?.container.addEventListener("mousedown", (e: MouseEvent) => {
e.preventDefault();
});
// Emit ready event
Expand Down

0 comments on commit 965b9e2

Please sign in to comment.