Skip to content

Commit

Permalink
perf: 🚀 vue-quill initial release
Browse files Browse the repository at this point in the history
BREAKING CHANGE: revert back to version 1.0.0
  • Loading branch information
luthfimasruri committed Mar 21, 2021
1 parent 0ae06e0 commit 5b1576f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/QuillEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
} from "vue";
import { toolbarOptions } from "./options";

// export
export default defineComponent({
name: "QuillEditor",
props: {
Expand Down Expand Up @@ -158,7 +157,7 @@ export default defineComponent({

const isEditorFocus = ref<boolean>()
const handleSelectionChange: SelectionChangeHandler = (range: RangeStatic, oldRange: RangeStatic, source: Sources) => {
// Mark model as touched if editor lost focus
// Set isEditorFocus if quill.hasFocus()
isEditorFocus.value = quill?.hasFocus() ? true : false
ctx.emit("selectionChange", { range, oldRange, source });
};
Expand Down

0 comments on commit 5b1576f

Please sign in to comment.