@meistrari/chat-nuxt 4.7.0-rc.1 → 4.7.1-rc.0
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/module.json
CHANGED
|
@@ -424,7 +424,14 @@ function handleInput() {
|
|
|
424
424
|
}
|
|
425
425
|
function handlePaste(e) {
|
|
426
426
|
e.preventDefault();
|
|
427
|
+
if (isLocked.value)
|
|
428
|
+
return;
|
|
429
|
+
const files = Array.from(e.clipboardData?.files ?? []);
|
|
430
|
+
if (files.length > 0)
|
|
431
|
+
addFiles(files);
|
|
427
432
|
const text = e.clipboardData?.getData("text/plain") ?? "";
|
|
433
|
+
if (!text)
|
|
434
|
+
return;
|
|
428
435
|
const sel = window.getSelection();
|
|
429
436
|
if (!sel || sel.rangeCount === 0)
|
|
430
437
|
return;
|