Skip to content

Commit 6cd2533

Browse files
committed
Fix pasted content disappearing in Bard
1 parent 6b418a1 commit 6cd2533

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

resources/js/components/fieldtypes/bard/BardFieldtype.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,13 @@ export default {
823823
editable: !this.readOnly,
824824
enableInputRules: this.config.enable_input_rules,
825825
enablePasteRules: this.config.enable_paste_rules,
826-
editorProps: { attributes: { class: 'bard-content' } },
826+
editorProps: {
827+
attributes: { class: 'bard-content' },
828+
handlePaste: () => {
829+
this.debounceNextUpdate = false;
830+
return false;
831+
},
832+
},
827833
onDrop: () => this.debounceNextUpdate = false,
828834
onFocus: () => {
829835
this.hasBeenFocused = true;

0 commit comments

Comments
 (0)