@codernote/record-tree 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -901,7 +901,9 @@ const u0 = {
|
|
|
901
901
|
handleTitlePaste(h) {
|
|
902
902
|
if (h.clipboardData) {
|
|
903
903
|
const a = h.clipboardData.items;
|
|
904
|
-
Array.from(a).some((p) => p.kind === "file")
|
|
904
|
+
Array.from(a).some((p) => p.kind === "file") ? (h.preventDefault(), this.$emit("file", h.clipboardData.files)) : h.clipboardData.getData("text") && (this.titleEmpty = !1, setTimeout(() => {
|
|
905
|
+
this.$emit("input", h.target.textContent);
|
|
906
|
+
}, 0));
|
|
905
907
|
}
|
|
906
908
|
}
|
|
907
909
|
}
|