dream-num / univer

Univer is an open-source productivity tool dev kit helping you integrate spreadsheets, docs and slides into your applications.
https://univer.ai
Apache License 2.0
6.71k stars 581 forks source link

[Bug] When I am editing a table unit and quickly switch to edit another table unit, a p field will appear in the table unit currently being edited, and the content being edited is in the dataStream, not in the field v. #2659

Closed feige-2011 closed 2 months ago

feige-2011 commented 3 months ago

在您提交此问题之前,您是否检查了以下内容?

受影响的包和版本

0.1.15

复现链接

WechatIMG1477

预期行为

当单元格退出编辑状态时,编辑的字段应该存到v字段上

实际行为

当单元格退出编辑状态时,编辑的字段应该存到{p:{body:{dataStream:"编辑内容"}}}字段上

运行环境

Chrome

系统信息

System: OS: macOS 14.0 CPU: (8) arm64 Apple M1 Memory: 93.58 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.14.0 - /opt/homebrew/Cellar/nvm/0.39.7/versions/node/v20.14.0/bin/node Yarn: 4.3.1 - /opt/homebrew/bin/yarn npm: 10.7.0 - /opt/homebrew/Cellar/nvm/0.39.7/versions/node/v20.14.0/bin/npm pnpm: 9.3.0 - /opt/homebrew/Cellar/nvm/0.39.7/versions/node/v20.14.0/bin/pnpm Browsers: Chrome: 116.0.5845.140 Safari: 17.0

univer-bot[bot] commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] 当我在编辑一个表格单元时,快速切换编辑另一个表格单元的时候,当前在编辑的表格单元就会出现一个p字段,编辑中的内容在dataStream中,而不是在字段v上

Title: [Bug] When I am editing a table unit and quickly switch to edit another table unit, a p field will appear in the table unit currently being edited, and the content being edited is in the dataStream, not in the field v.


Before you submitted this question, did you check the following?

Affected packages and versions

0.1.15

Recurrence link

WechatIMG1477

Expected behavior

When the cell exits the editing state, the edited field should be saved to the v field.

Actual behavior

When the cell exits the editing state, the edited fields should be stored in the {p:{body:{dataStream:"editing content"}}} field

Running environment

Chrome

system message

System: OS: macOS 14.0 CPU: (8) arm64 Apple M1 Memory: 93.58 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.14.0 - /opt/homebrew/Cellar/nvm/0.39.7/versions/node/v20.14.0/bin/node Yarn: 4.3.1 - /opt/homebrew/bin/yarn npm: 10.7.0 - /opt/homebrew/Cellar/nvm/0.39.7/versions/node/v20.14.0/bin/npm pnpm: 9.3.0 - /opt/homebrew/Cellar/nvm/0.39.7/versions/node/v20.14.0/bin/pnpm Browsers: Chrome: 116.0.5845.140 Safari: 17.0

jikkai commented 2 months ago

Duplicate of #2207