fix: prevent grid paste handler from intercepting paste in edit mode
When a cell is in edit mode, the native paste event was bubbling up to the grid root's @paste handler, which called preventDefault() and wrote values directly to the data model instead of the edit input. This caused the "Pasted!" toast to appear but the input content remained unchanged. Adding @paste.stop on edit inputs allows the browser's default paste behavior to insert text into the input field, properly updating editValue via v-model.
This commit is contained in:
1 parent
6e24ea5099
commit
012b03cac5
1 file changed
+3
@@ -6135,6 +6135,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
||||
@blur="commitEdit"
|
||||
@click.stop
|
||||
@keydown.stop="onEditKeydown"
|
||||
@paste.stop
|
||||
/>
|
||||
</template>
|
||||
<template v-else>
|
||||
@@ -6770,6 +6771,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
||||
@blur="commitEdit"
|
||||
@click.stop
|
||||
@keydown.stop="onEditKeydown"
|
||||
@paste.stop
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
@@ -6944,6 +6946,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
||||
@blur="commitEdit"
|
||||
@click.stop
|
||||
@keydown.stop="onEditKeydown"
|
||||
@paste.stop
|
||||
/>
|
||||
</template>
|
||||
<template v-else>
|
||||
|
||||
Reference in new issue
Block a user