@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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. 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") && (h.preventDefault(), this.$emit("file", h.clipboardData.files));
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codernote/record-tree",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {