Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 复制单个空格子(源数据值为空)的时候,粘贴无效(没有触发粘贴事件) #1646

Closed
manupman opened this issue May 7, 2024 · 0 comments · Fixed by #1648
Assignees
Labels
bug Something isn't working

Comments

@manupman
Copy link

manupman commented May 7, 2024

Version

v0.24.0

Link to Minimal Reproduction

https://visactor.io/vtable/demo/interaction/copy-paste-cell-value

Steps to Reproduce

  1. 通过官网demo 2. 置空一列数据进行复制粘贴
    let tableInstance; fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_data.json') .then(res => res.json()) .then(data => { const columns = [ { field: 'Order ID', title: 'Order ID', width: 'auto' }, { field: 'Customer ID', title: 'Customer ID', width: 'auto' }, { field: 'Product Name', title: 'Product Name', width: 'auto' }, { field: 'Category', title: 'Category', width: 'auto' }, { field: 'Sub-Category', title: 'Sub-Category', width: 'auto' }, { field: 'Region123', title: 'Region', width: 'auto' }, { field: 'City', title: 'City', width: 'auto' }, { field: 'Order Date', title: 'Order Date', width: 'auto' }, { field: 'Quantity', title: 'Quantity', width: 'auto' }, { field: 'Sales', title: 'Sales', width: 'auto' }, { field: 'Profit', title: 'Profit', width: 'auto' } ]; const option = { records: data, columns, widthMode: 'standard', frozenColCount: 1, overscrollBehavior: 'none', keyboardOptions: { moveEditCellOnArrowKeys: true, copySelected: true, pasteValueToCell: true }, editor: '' // 配置一个空的编辑器,以遍能粘贴到单元格中 }; tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option); window['tableInstance'] = tableInstance; });

Current Behavior

[Bug] 复制单个空格子(源数据值为空)的时候,粘贴无效(没有触发粘贴事件)

Expected Behavior

[Bug] 复制单个空格子(源数据值为空)的时候,可以进行粘贴并且能够触发change_cell_value进行监听

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

麻烦帮忙看看这个bug

@manupman manupman added the bug Something isn't working label May 7, 2024
@fangsmile fangsmile self-assigned this May 7, 2024
@fangsmile fangsmile linked a pull request May 7, 2024 that will close this issue
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants